Bug 286204 - Compiler does not detect annotation value ending with comma
Summary: Compiler does not detect annotation value ending with comma
Status: VERIFIED DUPLICATE of bug 112433
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.6 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-11 03:34 EDT by Christian Georgi CLA
Modified: 2009-09-15 06:52 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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