[antlr-interest] Possible gunit bug (NPE) with empty input

Petteri Räty betelgeuse at gentoo.org
Fri May 1 08:11:24 PDT 2009


The attached grammar seems to parse fine when given empty input and
calling into the parsing method but with gunit I it gives me
NullPointerException.

betelgeuse at pena ~/python/depend $ gunit Depend.testsuite
-----------------------------------------------------------------------
executing testsuite for grammar:Depend with 108 tests
-----------------------------------------------------------------------
1 failures found:
test3 (depend, line5) -
expected: ()
actual: java.lang.NullPointerException

Regards,
Petteri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Depend.g
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20090501/7cf101e1/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Depend.testsuite
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20090501/7cf101e1/attachment-0001.pl 


More information about the antlr-interest mailing list