Bug 169963 - "," in an annotation is not marked as error
Summary: "," in an annotation is not marked as error
Status: RESOLVED DUPLICATE of bug 138443
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 08:08 EST by Marcus Ebner CLA
Modified: 2007-01-09 11:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Ebner CLA 2007-01-09 08:08:05 EST
Build ID: M20060921-0945

Steps To Reproduce:
1. Create a Class A
2. Add the following annotation
@NamedQueries( {
  @NamedQuery(name="A.someQuery",
              query="SELECT r FROM tab t "),
})
Please notice the "," at the end. 

3. Eclipse does not give any warning/error because of the "," but when compiling with ant(sun jdk) an error is thrown.


More information:
Eclipse does not tell me any error but when I try to recompile with the normal SUN with ant I get an compilation error because of the ",".
Comment 1 Olivier Thomann CLA 2007-01-09 11:32:13 EST
This is perfectly fine.
Report it as a bug against Sun javac.

*** This bug has been marked as a duplicate of bug 138443 ***