Community
Participate
Working Groups
Attempting to load a class that contains a direct null to null comparison and that was compiled with Eclipse's built-in Java compiler causes a java.lang.VerifyError to be thrown at class load time. The same code, if compiled with Sun's compiler, works as expected. Example: System.out.println(null == null); -> Exception in thread "main" java.lang.VerifyError: (class: test/TestNull, method: main signature: ([Ljava/lang/String;)V) Expecting to find integer on stack
Fixed. Equal expression did not properly optimize null == null scenario.
May consider backporting to 2.1 maintenance stream.
Backported to 2.1.x stream. Fixed in 2.2 stream
Verified.
Verified in 3.0M1
*** Bug 45003 has been marked as a duplicate of this bug. ***