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

Johannes Luber jaluber at gmx.de
Sun Nov 11 03:35:57 PST 2007


Austin Hastings wrote:
> Howdy,
> 
> 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.
> 
> =Austin
> 
That's already known - at least for arrays. It could be also that the
generated Java is only for 1.4. If it is the first cause then I'm not
sure when it is fixed, though. It was planned for 3.1, but as Ter won't
release a 3.0-based ANTLR as soon as he thought, it may be a later release.

Johannes


More information about the antlr-interest mailing list