Scala for the Impatient

Bug Report Page

Third Edition

Section 7.11
Change
def green = color.getRed() 
to
def green = color.getGreen() 
Section 8.15
Change
if 0 <= t && t < 2400 && t % 100 < 60 then MilTime(t)
to
if 0 <= t && t < 2400 && t % 100 < 60 then new MilTime(t)
(Without the new, the apply method would be called recursively.)
Exercise 10.1
Change
val egg = java.awt.geom.Ellipse2D.Double(5, 10, 20, 30) with RectangleLike
to
val egg = new java.awt.geom.Ellipse2D.Double(5, 10, 20, 30) with RectangleLike
Section 15.5.1
Change could not optimize @tailrec annotated method sum2 to could not optimize @tailrec annotated method sum3
Section 15.7
Change

In this situation, the @JsonbProperty annotation is applied to the Java getName method.

to

In this situation, the @JsonbProperty annotation is applied to the Java getName and setName methods.

Credits

Thanks to Alessio Del Monte, Christopher Spears and (your name might go here) for their bug reports and suggestions!

Prior Edition Errata

Bug Report Form

Please use this form to report any bugs that you find. Please check the list of known bugs first before you report a bug. Unfortunately, I do not have the time to respond personally to every report, but I do read them all and will post updates to this page. Thank you!

Your name:

Your email address:

Page number:

Problem description:

To protect against spam robots, please answer this simple math problem:
* =