Summary: | [compiler] problem in first element of array initializer suppresses further problems | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | minor | ||||||||
Priority: | P3 | ||||||||
Version: | 3.3 | ||||||||
Target Milestone: | 3.3 M7 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 156731 | ||||||||
Attachments: |
|
Description
Markus Keller
2007-03-27 06:28:09 EDT
We could indeed by a little more fault tolerant, and keep trying to report more errors at once (as we usually try to do where it makes sense). Added ArrayTest#test013 Created attachment 62086 [details]
Proposed patch
Released for 3.3M7. Fixed Test org.eclipse.jdt.ui.tests.quickfix.UnresolvedVariablesQuickFixTest#testVarInAnnotation3 needs to be updated. The following test case: public class E { public @interface Annot { float[] value(); } @Annot(value={x}) class Inner { } } now reports two errors instead of one: x cannot be resolved The value for annotation attribute E.Annot.value must be a constant expression Prior to the fix, only the first error was reported. The second error can be seen as a secondary error. Agreed. Fixed the other case as well, added AnnotationTest#test226. Created attachment 62375 [details]
Second part of the patch (for regression induced)
Verified for 3.3M7 with I20070427-0010 |