Errata

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 5
Second sentence in the second paragraph in the section "Before Java 9"

The text says:

"By making a class protected, for example, you can prevent other classes from accessing it unless they
reside in the same package."

Classes cannot be declared protected in Java. It seems the desired access in the sentence is the default
"no modifier" package private.

Anonymous  Mar 20, 2022 
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 
Mobi Page 9912
text

TYPOS:
"a class to able to read another" should be "a class to be able to read another"

"Java 9, there’s is no way " should be "Java 9, there is no way "

"especially the for API modules " should be "especially for the API modules "

andy  Oct 22, 2019