Summary: | compiler - annotations with arrays allow comma after last element | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Darryl Smith <darryl.smith> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | marcusebner, maxim, philippe_mulet, sdavids |
Version: | 3.2 | ||
Target Milestone: | 3.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Darryl Smith
2006-04-25 13:39:31 EDT
I'll investigate. This looks like a bug with javac. From http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.7, the rule from the grammar is: ElementValueArrayInitializer: { ElementValuesopt ,opt } This means that: { ,} { c , } { c } { } are all valid ElementValueArrayInitializer elements. They had the same bug for array initializers. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4396418. You should report the bug against Sun compiler. Closing as INVALID. Added regression test org.eclipse.jdt.core.tests.compiler.regression.AnnotationTest.test199 *** Bug 153213 has been marked as a duplicate of this bug. *** *** Bug 169963 has been marked as a duplicate of this bug. *** *** Bug 195551 has been marked as a duplicate of this bug. *** Closing as dup. *** This bug has been marked as a duplicate of bug 112433 *** |