Thanks Steve, and Jim Idle who replied off-list. I guess I'll have to stick to Antlr v2 until my project drops the JDK 1.4 requirement. Messing around with retro-weaver sounds dubious and I need to restrict my third-party dependencies.
-----Original Message----- From: Steve Ebersole [mailto:steven.ebers...@gmail.com] On Behalf Of Steve Ebersole Sent: August 31, 2009 6:26 PM To: Gordon Tyler Cc: antlr-inter...@antlr.org Subject: Re: [antlr-interest] Using Antlr v3 with JDK 1.4 I ran into the same issue when first looking at Antlr3. I was told the intention was to not have the Antlr runtime rely on JDK 1.5; but unfortunately some JDK 1.5 features ended up getting exposed. The outcome of my queries, iirc, was that it would just remain JDK 1.5 compatible. You could probably use a retro-weaver though to make it 1.4 compatible. Did not try... On Mon, 2009-08-31 at 14:25 -0700, Gordon Tyler wrote: > Is it possible to use the Antlr v3 runtime with JDK 1.4? I’m getting > this error when compiling generated parser code using JDK 1.4, which > indicates that the runtime is compiled with JDK 1.5: > > > > NewTransformLexer.java:11: cannot access org.antlr.runtime.Lexer > > bad class file: lib > \antlr-runtime-3.1.3.jar(org/antlr/runtime/Lexer.class) > > class file has wrong version 49.0, should be 48.0 > > > > Is it just a matter of a recompile of the runtime or does the runtime > use Java 5 features? > > > > Thanks, > > Gordon > > > > --- > > Gordon Tyler (Software Developer) > > Quest Software <http://www.quest.com/> > > 260 King Street East, Toronto, Ontario M5A 4L5, Canada > > Voice: (416) 933-5046 | Fax: (416) 933-5001 > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- Steve Ebersole <st...@hibernate.org> Hibernate.org List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-interest@googlegroups.com To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---