Summary: | [1.5][compiler] ClassCastException during annotation code generation | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Audel <david_audel> | ||||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | philippe_mulet | ||||||
Version: | 3.3 | ||||||||
Target Milestone: | 3.2.2 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
David Audel
2006-12-08 04:57:18 EST
This is a bug in the compiler. We don't reject the annotation definition in TestAnnot. javac 1.5.0 reports: zz/TestAnnot.java:4: annotation value must be an annotation @MyB1(MyA2.XX) ^ Created attachment 55318 [details]
Proposed fix
Created attachment 55320 [details]
Regression tests
Philippe, please double-check. +1. Feels something we should address in 3.2.2 as well. Released for 3.3M4. Regression tests added. org.eclipse.jdt.core.tests.compiler.regression.AnnotationTest#test219/224 Reopen to backport to 3.2.2 Released for 3.2.2. Same regression tests. Verified for 3.3M4 with I20061212-0010. Verified for 3.2.2 using build M20070112-1200. |