jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x JavaNCSS Plugin
  • MJNCSS-49

JavaNCSS Unable to parse annotation inside for loop

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Labels:
    None

Description

Parser breaks for the given code snippet:

for (@SuppressWarnings("unchecked") Iterator itr = relationships.iterator(); itr.hasNext(); )

and results in the following error:

[23:16:29]: [INFO] ------------------------------------------------------------------------
[23:16:29]: [ERROR] BUILD ERROR
[23:16:29]: [INFO] ------------------------------------------------------------------------
[23:16:29]: [INFO] Error during page generation
[23:16:29]: Embedded error: Error rendering Maven report: Error while JavaNCSS was executing
[23:16:29]: Encountered " "@" "@ "" at line 108, column 22.
[23:16:29]: Was expecting one of:
[23:16:29]: "assert" ...
[23:16:29]: "boolean" ...
[23:16:29]: "byte" ...
[23:16:29]: "char" ...
[23:16:29]: "double" ...

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Johannes Schneider added a comment - 23/Jul/11 9:37 AM

Run into the same issue...

Show
Johannes Schneider added a comment - 23/Jul/11 9:37 AM Run into the same issue...

People

  • Assignee:
    Unassigned
    Reporter:
    George Turner Jr
Vote (1)
Watch (1)

Dates

  • Created:
    09/Sep/10 11:14 AM
    Updated:
    23/Jul/11 9:37 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.