Bug 88625 - [1.5][compiler] Invalid Enum comparing (Build id: I20050219-1500)
Summary: [1.5][compiler] Invalid Enum comparing (Build id: I20050219-1500)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 06:20 EST by Alex Rosenfeld CLA
Modified: 2005-03-31 10:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Rosenfeld CLA 2005-03-21 06:20:23 EST
Following sources will be compiled and displayed correct in the Eclipse, but
failed after compilation with the javac.exe.

public class Test
{
	enum Test1{test11, test12};
	enum Test2{test21, test22};

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		boolean booleanTest = (Test1.test11 == Test2.test22);
	}
}
Comment 1 Philipe Mulet CLA 2005-03-21 07:51:38 EST
This is due to missing #isEnum() checks in cast conversion support (where
#isClass() is mentionned).
Added EnumTest#test085
Comment 2 Philipe Mulet CLA 2005-03-21 07:52:22 EST
fixed
Comment 3 David Audel CLA 2005-03-31 10:39:57 EST
Verified in I20050330-0500