Bug 36438 - null == null causes java.lang.VerifyError
Summary: null == null causes java.lang.VerifyError
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1.1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 45003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-14 04:35 EDT by Eric Jain CLA
Modified: 2003-10-16 07:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***