Remove the last comma before the "})" tokens.
Eric
On 2/8/07, David Ford <[EMAIL PROTECTED]> wrote:
Hi, I'm doing a hibernate project where we set up a package-info.java
file that looks like this
@org.hibernate.annotations.NamedQueries( {
@org.hibernate.annotations.NamedQuery(name = "someQuery", query =
"from User u"),
})
package some.package;
The annotation is at the top, the package declaration is at the bottom.
Unfortunately, plexus-compiler-javac croaks when trying to parse this.
I just tried 1.6-SNAPSHOT and it still has the problem...
[parsing started
C:\SVN\diamond\orm-tracer\src\main\java\com\teleatlas\global\orm\domain\
package-info.java]
C:\SVN\diamond\orm-tracer\src\main\java\com\teleatlas\global\orm\domain\
package-info.java:116: illegal start of expression
})
^
However, this works fine in Eclipse, and so I tried
plexus-compiler-eclipse. With that, I get by the parsing issue above,
but I get a build failure b/c it cannot seem to find any of my domain
classes.
I've yet to find any documentation on how to configure
plexus-compiler-eclipse. I tried giving it <source>1.5</source> and
<target>1.5</source> but still no luck.
Has anyone else run into this - and have they found a workaround???
Thx in advance,
Davis
PS - can you please cc me on a reply
--
Eric Redmond
http://codehaus.org/~eredmond