OpenJDK fails to compile hadoop 0.23.1

Maurizio Cimadamore maurizio.cimadamore at
Mon Apr 16 13:28:49 PDT 2012

On 05/04/12 16:31, Radim Kolar wrote:
> here is code fragment:
> it seems to be widely known bug, its mentioned in hadoop wiki too.
Yep - this is same issue as the one I was mentioning:

The fix that caused this was attempted in the JDK 7 repo - I then 
updated it with the help of Alex as this area required a bit of a JLS 
cleanup, as it was the JLS that was mandating this particular failure. 
That's why the code in JDK 7 works correctly, as it take advantage of 
the new spec goodies. As for JDK 6 (closed) the 'fix' was simply not 
there and the old compiler behavior was more powerful than the one 
described in the spec, which allowed this kind of examples to compile.


More information about the compiler-dev mailing list