The xdoclet maven plugin chokes on jdk 1.5 annotations. This improvement uses 
the latest xjavadoc parser to resolve this issue.
-------------------------------------------------------------------------------------------------------------------------------

                 Key: MOJO-665
                 URL: http://jira.codehaus.org/browse/MOJO-665
             Project: Mojo
          Issue Type: Improvement
          Components: xdoclet
         Environment: jdk 1.5
            Reporter: Corridor Software Developer
            Priority: Blocker
         Attachments: xdoclet-xjavadoc-upgrade.patch

the xdoclet maven plugin uses xjavadoc version 1.1, which does not support jdk 
1.5 annotations.

When parsing code which uses annotations, you get an error similiar to this 
example using hibernatedoclet:

Running <hibernate/>
Error parsing File 
/data/users/bravo/projects/gate-svn/trunk/modules/core/src/java/com/egatematrix/model/i18n/LocaleWrapper.java:Lexical
 error: xjavadoc.TokenMgrError: Lexical error at line 33, column 1.  
Encountered: "@" (64), after : ""Error parsing File 
/data/users/bravo/projects/gate-svn/trunk/modules/core/src/java/com/egatematrix/model/security/AccessProfile.java:Encountered
 "<" at line 182, column 19.
Was expecting one of:
    <IDENTIFIER> ...
    "[" ...
    "." ...
    "(" ...

Error parsing File 
/data/users/bravo/projects/gate-svn/trunk/modules/core/src/java/com/egatematrix/cxportal/model/CxpCustomerMaster.java:Lexical
 error: xjavadoc.TokenMgrError: Lexical error at line 17, column 1.  
Encountered: "@" (64), after : ""
java.lang.NullPointerException
        at 
xjavadoc.SourceClass.unqualifiedNameInImportedClasses(SourceClass.java:494)
        at xjavadoc.SourceClass.qualify(SourceClass.java:404)

The solution to this is to upload the xjavadoc 1.5 snapshot, a corresponding 
pom file and modify the xdoclet plugin to use it. I've attached a pom diff and 
will associate this ticket with a repository upload request.

While not a unit test, the patch is feature complete and resolves the problem 
in my test case w/ hibernate doclet.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to