Summary: | [compiler] Annotation code compiles by Eclipse compiler but not by JDK compiler | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dmitri Maximovich <maxim> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | Olivier_Thomann |
Version: | 3.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Dmitri Maximovich
2006-08-08 22:58:20 EDT
For array initializer, Java spec status is: "A trailing comma may appear after the last expression in an array initializer and is ignored." Even if this is not esplicitely written for ElementValueArrayInitializer, our compiler currently supposes that this is the same behavior which should be applied for all array initializer. There was a bug opened against Sun compiler for enumeration (Bug ID: 4936392) but not for annotation. Perhaps may you open one? Philippe, I keep this bug opened and assign it to you in case you think it would be better to align eclipse compiler to Sun's compiler behavior even if it's buggy... Closing as a dup of bug 138443. *** This bug has been marked as a duplicate of 138443 *** |