[antlr-interest] Problem with Java runtime

Johannes Luber jaluber at gmx.de
Tue Sep 30 03:59:08 PDT 2008


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.
>  
> The "Java" in the name refers to the runtime language in this case.
>  
> Am I doing something wrong? If not, I wonder if the warning could
> possibly be removed in future?
>  
> For our information, I also have a C runtime version. This version does
> not seem to work in quite the same way as the Java version in that the
> block data appears to be popped before performing any @after processing
> (instead of after any @after processing as in the Java runtime) so
> that any appropriate block data is no longer available..

That might be a bug, which may have been fixed in 3.1.1 (coming out this
week).

Johannes

>  
> Thanks,
>  
> David.
> 
> 
> ------------------------------------------------------------------------
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 



More information about the antlr-interest mailing list