Page 680 (PDF page 713):
The first paragraph (the one starting with "To contrast ...") seems to be
wrong. It states that if both a class and its companion object are
defined, no static forwarding methods to the companion object would be
defined in the class and that Java code will have to access the companion
object via the MODULE$ instance. I wrote a simple code example and by
using javap I saw that actually those static forwarding methods are
defined.
I apologize if I actually misunderstood the fragment.
|