[
http://jira.codehaus.org/browse/MTAGLIST-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193130#action_193130
]
Nate Stoddard commented on MTAGLIST-48:
---------------------------------------
Good find Cristiano!
I believe the issue is in FileReport.java. The current logic captures all of
the characters after the word "package" from the source file's package line.
Then it removes the semicolon and trims up whitespace.
Current code:
packageName = currentLine.substring( PACKAGE_STR.length()
).trim().replaceAll( ";", "" ).trim();
break;
I believe this will resolve the issue:
int semicolon = currentLine.indexOf(';');
packageName = currentLine.substring( PACKAGE_STR.length(), semicolon ).trim();
break;
I'll create a patch later tonight.
> Wrong class name if package statement line ends with a comment
> --------------------------------------------------------------
>
> Key: MTAGLIST-48
> URL: http://jira.codehaus.org/browse/MTAGLIST-48
> Project: Maven 2.x Taglist Plugin
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Cristiano Kliemann
>
> When a class file has something like:
> package com.mycompany; /*Comment*/
> class MyClass {...
> all tag list occurrences will be identified as belonging to the class
> com.mycompany /*Comment*/.MyClass
> The same with line comments.
--
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