Chokes on odd chars
Brought to you by:
mecki
I get this exception when compiling a directory of java
files. The error message does not identify a file name or
row/column. A search through my source for a
char=decimal 190 (hex 0xBE) doesn't turn up anything.
Probably should catch this error and report file/line/row.
Exception in thread "main"
net.janino.Scanner$ScanException: Invalid character i
nput "╛" (character code 190)
at net.janino.Scanner.internalRead(Unknown
Source)
at net.janino.Scanner.<init>(Unknown Source)
at net.janino.Compiler.parseCompilationUnit
(Unknown Source)
Logged In: YES
user_id=865893
"ScanException"s now have an associated "Scanner.Location",
i.e. they report file name, line and column number.
This is not a fix for the reported bug, but a means to help
debugging. Please open another bug report when you've come
closer to the "190" problem.
Logged In: YES
user_id=68865
The fix made to 1.0.7 found the problem. I was attempting to
compile a directory that included a ".class" file. It was trying
to compile that file.