[antlr-interest] throws does not work

Kay Roepke kroepke at classdump.org
Wed Aug 8 22:21:17 PDT 2007


On Aug 9, 2007, at 7:16 AM, Vaclav Barta wrote:

> On Wednesday 08 August 2007 21:51, you wrote:
>> send it to antlr-dev list or to directly Kay.
> There's little point - the patch is trivial, may not be suitable  
> for general
> use and ANTLR devs already know about the problem.
>
>> 2007/8/8, Vaclav Barta <vbar at comp.cz>:
>>> The attached patch (simply replacing "throws  
>>> RecognitionException" in the
>>> Java
>>> template by "throws Exception") works for me, but YMMV.

Yes, Ter decided to do this when switching to the ANTLR v3 grammar  
internally. Not much
point to keep adding to the current v2 grammars (which is a bit  
tedious ;))

So the easiest option is to change it to Exception, sorry.

cheers,
-k

-- 
Kay Röpke
http://classdump.org/






More information about the antlr-interest mailing list