ThaisaMirely / javaparser

Automatically exported from code.google.com/p/javaparser
0 stars 0 forks source link

Lexical error #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm using the version 1.0.7 of Javaparser for one on mine Project.

It runs pretty good and I had no Problem.

But today I tryied to parse a German Project. In one Class there is : 
private int [] mÖpBär;

Something with accent seams to be not good for Javaparser. I take this 
exception :
Exception in thread "main" japa.parser.TokenMgrError: Lexical error at line 
1, column 1.  Encountered: "\ufeff" (65279), after : ""

After that the Program stops. Is it normal ? There is something that i can 
do to avoid that ?

In any case, thanks for this project it's really helpfully for me.

Bye

Original issue reported on code.google.com by charles....@gmail.com on 25 Jun 2009 at 9:02

GoogleCodeExporter commented 9 years ago
Could you please attach the source code with this problem?
thanks.

Original comment by jges...@gmail.com on 26 Jun 2009 at 1:19

GoogleCodeExporter commented 9 years ago
The file that i'm parsing is MyHeap.java.

The file which parse it is : TestTypJava.java

Thanks :)

Original comment by charles....@gmail.com on 26 Jun 2009 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
it's strange.

It seams to be a problem with encoding.

The Program works perfectly with encoding UTF8 without BOM. But when i put it 
into UTF8 
with BOM, or ANSI, or UCS2 it's not working.

Tomorrow i will try with Charset when i call JavaParser.parse

Original comment by charles....@gmail.com on 26 Jun 2009 at 6:45

GoogleCodeExporter commented 9 years ago
I have this error too, How to fix it?

Original comment by marcomsousa on 30 Nov 2011 at 7:45