#134 Better information for unexpected char

release_3.0
closed
1
2012-10-10
2003-01-11
No

Currently the folowing is printed:

checkstyle:
[checkstyle]
/linux/b/CVS/SourceForge/HuntForGold/huntforgold/src/net/sourceforge/huntforgold/model/Fleet.java:0:
Got an exception - unexpected char:

It would be nice with:
o Line number
o Char position
o Hex value of the char

Right now I can't see where the char is located :(

Discussion

  • Lars Kühne

    Lars Kühne - 2003-01-11

    Logged In: YES
    user_id=401384

    Unfortunately the exception is not thrown by us but by ANTLR
    and it doesn't include the info you ask for. Grrr.

    Maybe we can use the current position of the Lexer as an
    approximation, that would be a lot better than the current
    situation.

     
  • Oliver Burn

    Oliver Burn - 2003-02-02

    Logged In: YES
    user_id=218824

    think we will need to wait for a fix from ANTLR

     
  • Rick Giles

    Rick Giles - 2004-06-21

    Logged In: YES
    user_id=539926

    Added line and column information, and hex value of the
    char; 3.5 CVS.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks