Bug 36438

Summary: null == null causes java.lang.VerifyError
Product: [Eclipse Project] JDT Reporter: Eric Jain <eric.jain>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kisst2
Version: 2.1   
Target Milestone: 2.1.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Eric Jain CLA 2003-04-14 04:35:06 EDT
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
Comment 1 Philipe Mulet CLA 2003-04-15 11:31:18 EDT
Fixed. Equal expression did not properly optimize null == null scenario.
Comment 2 Philipe Mulet CLA 2003-04-15 11:31:38 EDT
May consider backporting to 2.1 maintenance stream.
Comment 3 Philipe Mulet CLA 2003-04-16 04:18:28 EDT
Backported to 2.1.x stream.
Fixed in 2.2 stream
Comment 4 David Audel CLA 2003-06-02 07:09:40 EDT
Verified.
Comment 5 David Audel CLA 2003-06-06 12:49:50 EDT
Verified in 3.0M1
Comment 6 Olivier Thomann CLA 2003-10-16 07:49:25 EDT
*** Bug 45003 has been marked as a duplicate of this bug. ***