[antlr-interest] unchecked calls warnings compiling the lexer

Lucio Biondi lucio.biondi at iond.it
Tue Sep 28 11:59:25 PDT 2004


Hi,

antlr generates in myLexer.java :

literals = new Hashtable();
literals.put(new ANTLRHashString("min", this), new Integer(13));
literals.put(new ANTLRHashString("max", this), new Integer(13));
literals.put(new ANTLRHashString("sum", this), new Integer(13));
.....

but javac (1.5) complaints with warnings :

[unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
    literals.put(new ANTLRHashString("min", this), new Integer(13));

I've found no solution googling this forum and the net.

I need java 1.5 for my project so how can I wrap around this problem
given that antlr seems to me still not ready to produce java code with generics ?

Sorry, I'm not an antlr guru, so probably I miss something.

Thanks in advance.

Lucio



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list