Bug 286204

Summary: Compiler does not detect annotation value ending with comma
Product: [Eclipse Project] JDT Reporter: Christian Georgi <christian.georgi>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, Olivier_Thomann, srikanth_sankaran, stephan.herrmann
Version: 3.5   
Target Milestone: 3.6 M2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Christian Georgi CLA 2009-08-11 03:34:51 EDT
The code below compiles with the Eclipse compiler while javac rejects it with an "illegal start of expression" error.

@RunWith(Suite.class)
@Suite.SuiteClasses( { SomeTest.class, })
public class SomeSuite { }


[javac] SomeSuite.java:9: illegal start of expression 
ERROR  :      [javac] @Suite.SuiteClasses( { SomeTest.class, }) 
ERROR  :      [javac]                                        ^ 
ERROR  :      [javac] 1 error
Comment 1 Stephan Herrmann CLA 2009-08-11 03:50:39 EDT
As discussed in bug 112433 this is a bug in Sun's javac, not Eclipse.
Comment 2 Olivier Thomann CLA 2009-08-11 09:02:06 EDT
Closing as a dup of bug 112433.

*** This bug has been marked as a duplicate of bug 112433 ***
Comment 3 Ayushman Jain CLA 2009-09-15 03:07:18 EDT
Verified for 3.6M2