[antlr-interest] BUG (JAVA): Generics not permitted in Antlr rule parameter lists

Gavin Lambert antlr at mirality.co.nz
Sun Nov 11 11:17:03 PST 2007


At 17:13 11/11/2007, Austin Hastings wrote:
 >In the Java target, the dreaded string-template failure occurs 
if a
 >rule has a parameter with generic type:
 >
 >testCase[String m1, String m2, List<TestCase> tests]
 >
 >produces a call like
 >
 >testCase(m1, m2,  , tests);
 >
 >and a build failure, etc.

I tried replicating this in 3.0.1, but couldn't -- calls, 
declarations, and return values involving generic types all seemed 
to generate the correct code.

Can you post a more specific repro example?  Or are you using an 
earlier version?



More information about the antlr-interest mailing list