I'm using annotations in my source code.
Below is a sample:
@Override
protected void draw() {
...
}
Executing java -cp .;jrefactory.jar PrettyPrinter Circle.java,
I encountered the error below:
ParserFactory Version 0.1: Encountered errors during parse: D:\jrefactory-2.9.18\Circle.java
java.lang.NullPointerException
at net.sourceforge.jrefactory.factory.ParserFactory.getAbstractSyntaxTree(ParserFactory.java:46)
at org.acm.seguin.pretty.PrettyPrintFile.apply(PrettyPrintFile.java:102)
at org.acm.seguin.tools.builder.PrettyPrinter.visit(PrettyPrinter.java:77)
at org.acm.seguin.io.DirectoryTreeTraversal.traverse(DirectoryTreeTraversal.java:91)
at org.acm.seguin.io.DirectoryTreeTraversal.run(DirectoryTreeTraversal.java:43)
at org.acm.seguin.tools.builder.PrettyPrinter.prettyPrinter(PrettyPrinter.java:163)
at org.acm.seguin.tools.builder.PrettyPrinter.main(PrettyPrinter.java:143)
at PrettyPrinter.main(PrettyPrinter.java:54)
I also tried with version 2.9.19 but received the same error.
Could someone please advise what's wrong?
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using annotations in my source code.
Below is a sample:
@Override
protected void draw() {
...
}
Executing java -cp .;jrefactory.jar PrettyPrinter Circle.java,
I encountered the error below:
ParserFactory Version 0.1: Encountered errors during parse: D:\jrefactory-2.9.18\Circle.java
java.lang.NullPointerException
at net.sourceforge.jrefactory.factory.ParserFactory.getAbstractSyntaxTree(ParserFactory.java:46)
at org.acm.seguin.pretty.PrettyPrintFile.apply(PrettyPrintFile.java:102)
at org.acm.seguin.tools.builder.PrettyPrinter.visit(PrettyPrinter.java:77)
at org.acm.seguin.io.DirectoryTreeTraversal.traverse(DirectoryTreeTraversal.java:91)
at org.acm.seguin.io.DirectoryTreeTraversal.run(DirectoryTreeTraversal.java:43)
at org.acm.seguin.tools.builder.PrettyPrinter.prettyPrinter(PrettyPrinter.java:163)
at org.acm.seguin.tools.builder.PrettyPrinter.main(PrettyPrinter.java:143)
at PrettyPrinter.main(PrettyPrinter.java:54)
I also tried with version 2.9.19 but received the same error.
Could someone please advise what's wrong?
Thanks in advance.