[antlr-interest] Problem with Java runtime

Jim Idle jimi at temporal-wave.com
Tue Sep 30 09:04:58 PDT 2008


On Tue, 2008-09-30 at 12:59 +0200, Johannes Luber wrote:

> David Wigg schrieb:
> > To whom it may concern,
> >  
> > I get this warning when compiling the Java runtime.
> >  
> > .\TestRecursion_JavaParser.java:64: warning: [unchecked] unchecked call
> > to push(E) as a member of the raw type java.util.Stack
> >         block_stack.push(new block_scope());
> > I attach the source code and the grammar which produced it.
> 
> This merely means that no generics are used in the runtime, as Java 1.4
> has to be still supported. It may be annoying, but until there aren't
> any users of Java 1.4 left, Ter can't change this.


I am not convinced that there are any 1.4 javac users left, but anyway,
as type information is elided  and so on, it should be fine to generate
1.5 or even 1.6 code and then have developers target the byte code at
1.4 (using the options on javac).

Jim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080930/204226fa/attachment.html 


More information about the antlr-interest mailing list