a bug(maybe fixed) on antlr grammer file
williamyuan
williamyuan at yeah.net
Thu Oct 22 09:45:08 PDT 2009
Hi Jon,
Thanks for you reply
But I tested it on antlrworks, it can not parse this
public class AOPHandler{
public Object invoke() throws A{
return result;
}
}
it will be recognized as an annotation but not a method
it's caused by the 'throws' remove 'throws A' it will be fine.
can you give me a copy of lastest grammer file ?
thanks
BILL
?>
> williamyuan wrote:
> > hi all
> > i downloaded the antlr grammer from
> > http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g
> > and found it can not recognize the method with a throws keyword,
> > i found this link and downloaded it from the antlr.org
> > it said it's last updated in Jan 2009. so i am not sure whether
> > somebody fixed it.
> >
> > how to get a copy of the lastest version of the antlr grammer file for
> > openjdk ?
> >
> >
> > thanks,
> > BILL
> >
> William,
>
> I would be surprised if what you say is true, since the file was very
> heavily tested. That being said, there is regrettably no one maintaining
> this file at this time.
>
> -- Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-grammar-dev/attachments/20091023/aa9af6d3/attachment.html
More information about the compiler-grammar-dev
mailing list