4 Replies Latest reply on May 7, 2013 4:15 PM by lincolnthree

    Could not parse package-info.java

    myannou

      Hello,

       

      I need to parse a package-info.java file (see http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#sourcefiles)

      and get annotations

      For this I use: JavaSource<?> javaSource = javaResource.getJavaSource()

      But it doesn't work because of the followinf exception: "org.jboss.forge.parser.ParserException: Could not find type declaration in Java source - is this actually code?"

       

      Should I do it differently ?

      Thanks

      Yann.