Re: checkstyle4nb produeces ClassCastExcpetion
"Oliver Burn" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Is there another version of ANTLR somewhere in the classpath. This is a common cause of this type of error. On 4/25/07, Thomas Zillinger <[email protected]> wrote: > > Hi guys, I was wondering if you could help me on this matter. I know, > checkstyle4nb is not a project hosted by checkstyle. However, but maybe > someone knows the answer anyway. > > The problem is, that checkstyle4nb produces following weird error when > processing a file using checker.process(File[]): > "java.lang.ClassCastException: antlr.CommonToken cannot be cast to > antlr.Token" > in line 0 of the file. > > I'm using checkstyle-all-4.3.jar as the only lib I added. > > Anyone got an idea? > > -- > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user