You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2007/03/31 17:55:19 UTC
[jira] Closed: (JXR-26) NPE when source code contains quoted
strings "package" or "import"
[ http://jira.codehaus.org/browse/JXR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed JXR-26.
------------------------------
Resolution: Fixed
This was fixed in r516976.
> 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
> Affects Versions: 1.0
> Reporter: Géraud Dugé
> Assigned To: Dennis Lundberg
> Fix For: 1.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