JavaNCSS
  1. JavaNCSS
  2. JAVANCSS-12

parse error "public static class"

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 30.51
    • Fix Version/s: 32.53
    • Labels:
      None
    • Number of attachments :
      0

      Description

      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

        Activity

        Hide
        Herve Boutemy added a comment - - edited

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

        Show
        Herve Boutemy added a comment - - edited can you give us a link to the source causing this error?
        Hide
        werner mueller added a comment -

        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!

        Show
        werner mueller added a comment - 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!
        Hide
        Herve Boutemy added a comment -

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

        Show
        Herve Boutemy added a comment - fixed in r159 thanks to Sébastien Raynaud's patch

          People

          • Assignee:
            Herve Boutemy
            Reporter:
            werner mueller
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: