Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently

Alan Bateman Alan.Bateman at oracle.com
Tue Jan 28 15:46:37 UTC 2014


On 28/01/2014 08:44, Peter Levart wrote:
>
> Yes, I tried that too and it results in even more unsafe casts.
>
> It's odd yes, since the compile-time error is not present when 
> building via OpenJDK build system make files (using "make images" in 
> top directory for example) but only if I compile the class from 
> command line (using javac directly) or from IDEA. I use JDK 8 ea-b121 
> in all cases as a build JDK. Are there any special options passed to 
> javac for compiling those classes in JDK build system that allow such 
> code?
>
jdk/make/Setup.gmk has the -Xlint options that are used in the build but 
I suspect it more than that all the classes in java/lang/ref are 
compiled together.

-Alan



More information about the core-libs-dev mailing list