[
http://jira.codehaus.org/browse/JXR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172399#action_172399
]
francisdb commented on JXR-26:
------------------------------
info:
If you encounter this issue you are probably still using
<groupId>org.codehaus.mojo</groupId>
<artifactId>jxr-maven-plugin</artifactId>
instead of
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
> NPE when source code contains quoted strings "package" or "import"
> ------------------------------------------------------------------
>
> Key: JXR-26
> URL: http://jira.codehaus.org/browse/JXR-26
> Project: Maven JXR
> Issue Type: Bug
> Components: jxr
> Affects Versions: 1.0
> Reporter: Géraud Dugé
> Assignee: Dennis Lundberg
> Fix For: 2.1
>
>
> Here is a sample code:
> {code}
> package fr.test;
> public class SimpleTest
> {
> public void test()
> {
> //String varTest = "import";
> String varTest = "package";
> }
> }
> {code}
> When I run mvn jxr:jxr, the following NPE happens:
> {quote}
> ...
> [DEBUG] parsing... fr\test\SimpleTest.java
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] null
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
> at
> org.apache.maven.jxr.pacman.JavaFileImpl.parse(JavaFileImpl.java:95)
> at
> org.apache.maven.jxr.pacman.JavaFileImpl.<init>(JavaFileImpl.java:64)
> at
> org.apache.maven.jxr.pacman.FileManager.getFile(FileManager.java:68)
> ...
> {quote}
--
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