[antlr-interest] Fwd: Bug in tree.py, how to submit defects on ANTLR

Glenn Snyder gsnyder2007 at gmail.com
Wed Jul 29 17:28:49 PDT 2009


Hi,
Jim suggested I send this issue to the list. If any follow-up is required
please contact me directly. Thanks.

regards,

Glenn Snyder
gsnyder2007 at gmail.com

---------- Forwarded message ----------
From: Glenn Snyder <gsnyder2007 at gmail.com>
Date: Tue, Jul 28, 2009 at 1:51 PM
Subject: Bug in tree.py, how to submit defects on ANTLR
To: Jim Idle <jimi at temporal-wave.com>, jimi at idle.ws


Jim,
I believe I have uncovered a defect in ANTLR v3.1.2 Python API in the
getAncestors() method call. I receive the following error when attempting to
use the method,

File
"/Library/Python/2.5/site-packages/antlr_python_runtime-3.1.2-py2.5.egg/antlr3/tree.py",
line 909, in getAncestors
    if selfgetParent() is None:
NameError: global name 'selfgetParent' is not defined

I opened tree.py and went to line 909 and, obviously, there should be a "."
(dot) in between "self" and "getParent()". After inserting the "." the code
worked as expected.

I tried to search the ANTLR defect database (found at
http://www.antlr.org/jira/secure/Dashboard.jspa) using a keyword of
"getAncestors" and didn't locate any issues. Is there a way I can submit a
defect (and the fix?)? It wasn't apparent that I could submit new issues.
Let me know how I can help.

-- 
regards,

Glenn Snyder
508-397-0420
http://www.linkedin.com/in/glennasnyder




-- 
regards,

Glenn Snyder
508-397-0420
http://www.linkedin.com/in/glennasnyder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090729/bbab1d15/attachment.html 


More information about the antlr-interest mailing list