[antlr-interest] ANTLR compile problem

Steven Raemaekers stevenraemaekers at gmail.com
Sun Jan 10 03:34:55 PST 2010


Hello,

A project i'm working on includes an ANTLR parser, it worked fine a couple
of days ago but now I get the following error message:

Exception in thread "main" java.lang.NoSuchMethodException:
stevenr.yali.antlr.LogoParser.<init>(org.antlr.runtime.TokenStream,
org.antlr.runtime.debug.DebugEventListener)
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getDeclaredConstructor(Class.java:1985)
    at org.deved.antlride.runtime.LaunchParser.launch(LaunchParser.java:118)
    at org.deved.antlride.runtime.LaunchParser.main(LaunchParser.java:228)

It seems like ANTLR runtime is trying to call a constructor that is not
there, namely a constructor with a tokenstream and a debugeventlistener as
arguments.
Why would ANTLR want to do this? Previously this problem never occurred. Did
it accidentaly go in some kind of "debug" mode that it is trying to attach
an event listener?
Why doesn't it just call the instructor it created itself (without a
debugeventlistener)? Maybe there is some kind of debug option i turned on
somewhere?
Eclipse says that the java output file that ANTLR generates does not contain
any errors.

Can somebody please help me?  Thanks.

-- 
Regards,

Steven Raemaekers


More information about the antlr-interest mailing list