[
https://issues.jboss.org/browse/FORGE-889?page=com.atlassian.jira.plugin....
]
George Gastaldi commented on FORGE-889:
---------------------------------------
Hi Yann,
That's because the type isn't the correct one. I suggest you take a look at the
JavaParserImpl class in
https://github.com/forge/java-parser/blob/master/impl/src/main/java/org/j...
We should probably need to create a new type named JavaPackage and make it extend the
interfaces that identify its behavior (AnnotationTarget and Named are some of them).
Next step would be to implement this interface in the java-parser/impl project and create
it in the JavaParserImpl class above. Simple isn't it? :D
Cannot parse package-info.java
------------------------------
Key: FORGE-889
URL:
https://issues.jboss.org/browse/FORGE-889
Project: Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 1.2.3.Final, 2.0.0.Alpha3
Reporter: Yann Albou
The parsing of package-info.java file (see
http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html...)
raises the following exeption:
"org.jboss.forge.parser.ParserException: Could not find type declaration in Java
source - is this actually code?"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira