Errata

What's New in Java 11?

Errata for What's New in Java 11?

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page n/a
Section "Repeating a string" under "STRING API ENHANCEMENTS"

The method name "renderedInfo" in the code example for the section "Repeating a string" should be named "renderInfo". That's the method name used in the "canRepeatString" test method when invoking it.

For more information, see the corresponding GitHub repository containing all the code for the technology report: https://github.com/bmuschko/whats-new-in-java-11/blob/master/src/test/java/com/bmuschko/java11/library/StringEnhancementTest.java#L20

Benjamin Muschko  Mar 26, 2020 
Page n/a
First paragraph of "New Library Methods for Strings, Collections, and Files"

The last sentence in the paragraph refers to "Collections" but should be "Collection":

> The implementations might be small, but they do create additional API surface that needs to be maintained and tested. Java 11 adds convenience methods to the String, Collections, and Files APIs.

The link for the term "Collection" should point to https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Collection.html instead.

Benjamin Muschko  Mar 26, 2020