4 Replies Latest reply on May 7, 2013 4:15 PM by Lincoln Baxter III

    Could not parse package-info.java

    Yann Albou Newbie

      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.