Summary: | [1.5][compiler] inconsistent treatment of explicit subclasses of Enum | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> | ||||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | daniel_megert, darin.eclipse | ||||||
Version: | 3.2 | ||||||||
Target Milestone: | 3.2 RC4 | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Adam Kiezun
2006-02-14 11:33:42 EST
The first case that doesn't fail to compile reports: Exception in thread "main" java.lang.VerifyError: (class: X$1, method: <init> signature: (Ljava/lang/String;I)V) Expecting to find unitialized object on stack at X.main(X.java:7) at runtime. Created attachment 40608 [details]
Proposed fix
Created attachment 40609 [details]
Regression test
Fix looks good. +1 for 3.2RC4 Darin/Dani: pls cast your vote. Fix is trivial (exact same check we perform when connecting superclasses, but anonymous use a different codepath which didn't check). Dani - pls vote Looked at the patch - approving for 3.2 RC4. +1 Fixed and released in HEAD. Regression test added in org.eclipse.jdt.core.tests.compiler.regression.EnumTest.test128 Verified with I20060511-2000 for 3.2RC4 |