Community
Participate
Working Groups
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 ",".
This is perfectly fine. Report it as a bug against Sun javac. *** This bug has been marked as a duplicate of bug 138443 ***