• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Chaper 17 Modular Applications - error in diagram? - Sybex CSG 17 - Sybex 829

 
Greenhorn
Posts: 15
Angular Framework Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

in chapter 17 Modular Applications (Page 822) there is an diagram ilustrating the dependencies between different modules.
The arrow from zoo.tours.api (SPI) to zoo.tours.agency (service provider) should be in the opposit direction. From agency (SP) to api (SPI).

As an additional hint. It would be easier to distinquish between module and package (in requires and exports for instance) if the names would be different. I understand that in real code a lots of modules are named like the main package in this module. But it makes it harder do to understand if I have to use the module or package in requires.
 
author & internet detective
Posts: 42073
932
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is about the Java 11 CSP book, not the 829 book. (The 829 book doesn't have a chapter 17 and the Java 11 CSP does have modules as ch 17. The page number doesn't line up exactly either. There's no diagram on 822.

So I'm not 100% sure which diagram this is about. I know we fixed some diagram stuff for Java 17 though so I'm guessing it is that.

While I agree it is confusing to have package/module names be similar, that is how it works in the real world (as you noted). And more importantly, it is reasonable for the real exam to do that.
 
Our first order of business must be this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic