Menu

#24 No newline at end of file throws an exception

open
nobody
None
5
2004-08-10
2004-08-10
Anonymous
No

If a source file does not have a new line directly
before the end of the file (for example, if "}" is the
last character), version 5.0.0 throws the following
exception:

Exception in thread "main"
org.incava.java.TokenMgrError: Lexical error at line
5139, column 11. Encountered: <EOF> after : ""
at
org.incava.java.Java13ParserTokenManager.getNextToken(Java13ParserTokenManager.java:1691)
at
org.incava.java.Java13Parser.jj_ntk(Java13Parser.java:7299)
at
org.incava.java.Java13Parser.CompilationUnit(Java13Parser.java:106)
at
org.incava.doctorj.Main.processFile(Main.java:108)
at org.incava.doctorj.Main.run(Main.java:56)
at org.incava.doctorj.Main.main(Main.java:127)

Discussion


Log in to post a comment.