Java 9 Modularity

Errata for Java 9 Modularity

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted
Printed Page 67
Example 4-4, the method provider().

The return type of the method provider() should really be the service interface, rather than the service class. While this is not technically wrong, it makes no sense to do otherwise. This is "WRONG": public static ExampleProviderMethod provider() { return new ExampleProviderMethod("Analyzer created by static method"); } This is "BETTER": public static Analyzer provider() { return new ExampleProviderMethod("Analyzer created by static method"); } The SAME issue exists on page 68 in Example 4-5.

Simon Archer  Apr 25, 2018 
Printed Page 87
1st paragraph, 1st sentence

The additional transitive keyword occurs in the requires clause, not the exports clause.

Note from the Author or Editor:
Woops, disregard my previous response, you meant the line below the examples, which indeed mixes up requires/exports. Thanks!

Charles Muchene  Jan 07, 2019 
PDF Page 158
2nd paragraph

This page is not properly printed

Note from the Author or Editor:
Could you be more specific? What are you (not) seeing?

JJ.Sun  Jun 07, 2017