>>
>> Would I be out of place to still think this is a bug?  Shouldn't the
>> code to catch the RecognizerException only be emitted if the code that
>> throws it is also emitted?
>>
> not always...you could put a throw in an action :)
> Ter

well, exactly, and that is precisely when I would expect to be
required to add my own catch because it's *my* throw...  Adding a
dummy catch to suppress a default, erroneous behavior, on the other
hand, seems a bit of a perversion.  (I mean, it's only erroneous
because this is a "checked" exception, so Java expects catches only
for throws... if ANTLR isn't supposed to be designed that way, then
couldn't this just be fixed by having RecognizerException extend
RuntimeException instead?)

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to