Bug 88625

Summary: [1.5][compiler] Invalid Enum comparing (Build id: I20050219-1500)
Product: [Eclipse Project] JDT Reporter: Alex Rosenfeld <alexander.rosenfeld>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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