Issue Details (XML | Word | Printable)

Key: JAVANCSS-12
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Herve Boutemy
Reporter: werner mueller
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
JavaNCSS

parse error "public static class"

Created: 25/Feb/09 05:08 AM   Updated: 27/May/09 05:21 PM   Resolved: 27/May/09 05:21 PM
Component/s: None
Affects Version/s: 30.51
Fix Version/s: 32.53

Time Tracking:
Not Specified


 Description  « Hide

we encountered a parse error:

Encountered "public static class" at line 56, column 5.
Was expecting one of:
"boolean" ...
"byte" ...
"char" ...
"double" ...
"float" ...
"int" ...
"long" ...
"short" ...
"@" ...
"public" "public" ...
"public" "static" "public" ...
"public" "static" "static" ...
"public" "static" "protected" ...
"public" "static" "private" ...
"public" "static" "final" ...
"public" "static" "abstract" ...
"public" "static" "synchronized" ...
"public" "static" "native" ...
"public" "static" "transient" ...
"public" "static" "volatile" ...
"public" "static" "strictfp" ...
"public" "static" "@" ...
"public" "static" "enum" ...
"public" "protected" ...
"public" "private" ...
"public" "static" "<" ...
"public" "static" "void" ...
"public" "static" "boolean" ...
"public" "static" "char" ...
"public" "static" "byte" ...
"public" "static" "short" ...
"public" "static" "int" ...
"public" "static" "long" ...
"public" "static" "float" ...
"public" "static" "double" ...
"public" "static" <IDENTIFIER> ...
<IDENTIFIER> ...

the source it failed on is:

[...]
public interface Document {
/** document category description type */
@DescriptionType("org.edorasframework.filestore.core.documentCategoryDescriptionType")//$NON-NLS-1$
public static class Category {
}
[...]

the "public static class" line seems to be too unuasal



Herve Boutemy added a comment - 23/May/09 10:41 AM - edited

can you give us a link to the source causing this error?


werner mueller added a comment - 26/May/09 02:42 AM

hello

the source can be seen at:
http://fisheye.edorasframework.org/browse/framework/trunk/org.edorasframework.filestore/org.edorasframework.filestore.core/src/main/java/org/edorasframework/filestore/core/Document.java?r=1403

the svn repository is at: http://repo.edorasframework.org/svn/framework/trunk/org.edorasframework.filestore/

the file has changed quite a bit since the report. i think the confusing part is the class statement within the interface.

thanks!


Herve Boutemy added a comment - 27/May/09 05:21 PM

fixed in r159
thanks to Sébastien Raynaud's patch