|
FYI, XDoclet2 uses a specific snapshot dated from 20051211.114207
( http://dist.codehaus.org/generama/jars/qdox-20051211.114207.jar I don't think it'd be much work to add support for it for someone with experience with grammars - which is not me atm Thought that it would be of interest here - QDOX 1.6 has been released!
http://joe.truemesh.com/blog//000642.html 1.6 released This new release is a stop-gap release. Highlights include:
This should be enough for existing projects to carry on using it with Java 5 code. The next release will focus on making Java 5 specific features available in the API. Stay tuned.
August 15, 2006 Looks like support isn't perfect.
The following annotation is used as a sample in the annotations tutorial at http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html @SuppressWarnings({"unchecked", "deprecation"}) However, if you use it in a source file, you get a com.thoughtworks.qdox.parser.ParseException: syntax error Looks like the comma is upsetting it. this works (even the last example) on 1.6.1
This patch adds Java 5+ annotation support. It adds support for parsing as well as creating/extracting the annotations, annotation types and the parameter names and their values (just returnes a String, assumes the set values are constants... types - e.g. String.class must be converted manually by the consumer).
I also updated the lexer, parser, and annotation tests. The patch is pretty extensive. It does have changes to Junit tests, thus is far more likely to be applied.
However, we have no coverage reports, and I think this is essential prior to applying something this big. Joe? Applied. After the Maven2 pom.xml in
Eric's patch was released in 1.6.3, right?
So, shouldn't this issue be closed now? |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If I understood the dependencies right XDoclet uses QDox and I know that there is a patch for XDoclet to handle Java 1.5 (annotations, generics etc).