Typo in JLS 8 Section 5.2

Hiram Hunt hiramhunt at verizon.net
Sun Jun 5 18:26:51 UTC 2016


Hello,

In the Java Language Specification (Java SE 8 Edition)
in section 5.2 (Assignment Contexts) on page 112 of my
printed copy but page 114 of the current online .pdf
version there is a typo.  In the last bulleted item of
the explanation of Example 5.2-3 it says

     "because not every reference that could be the value
      of an expression of type ColoredPoint can correctly
      be the value of a variable of type Point."

Here, "Point" and "ColoredPoint" are swapped.

-- Hiram Hunt (hiramhunt at verizon.net)



More information about the jls-jvms-spec-comments mailing list