JavaNCSS parser fails on forall with arrays -------------------------------------------
Key: MCOBERTURA-133 URL: http://jira.codehaus.org/browse/MCOBERTURA-133 Project: Maven 2.x Cobertura Plugin Issue Type: Bug Affects Versions: 2.2 Reporter: Justin Sands The JavaNCSS parser cannot parse the following java code because of how the array is declared: This is clearly an issue with the JavaNCSS parser or the version of the parser used by 2.2. Fails: for (int personAttrs[] : attributes) { Works: for (int[] personAttrs : attributes) { Encountered " ":" ": "" at line 449, column 48. Was expecting one of: "[" ... ";" ... "," ... "=" ... but it can parse -- 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