This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157925 - ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.ast.stmtType
Summary: ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.py...
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Lou Dasaro
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-04 15:46 UTC by blackrat
Modified: 2015-05-18 05:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 144257


Attachments
stacktrace (2.18 KB, text/plain)
2009-02-04 15:47 UTC, blackrat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blackrat 2009-02-04 15:46:56 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: OpenJDK 64-Bit Server VM, 10.0-b19, IcedTea6 1.4 (fedora-7.b12.fc10-x86_64) Runtime Environment, 1.6.0_0-b12
OS: Linux, 2.6.27.12-170.2.5.fc10.x86_64, amd64

User Comments:
GUEST: Nothing with the Netbeans just open I was working in another aplication

GUEST: Now I was putting a parenthesis in a Try/Except code

GUEST: Editting Python code with the Python plugin.

I had actually typed this:

  for lib in ['

and then the error popped up.

GUEST: Editing a python source file.

Code folding does not appear to be functioning.

GUEST: opened a new HTML page called login.html



Stacktrace: 
java.lang.ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.ast.stmtType
        at org.python.antlr.GrammarActions.makeElse(GrammarActions.java:191)
        at org.python.antlr.PythonParser.if_stmt(PythonParser.java:6428)
        at org.python.antlr.PythonParser.compound_stmt(PythonParser.java:6222)
        at org.python.antlr.PythonParser.stmt(PythonParser.java:2375)
        at org.python.antlr.PythonParser.suite(PythonParser.java:7695)
        at org.python.antlr.PythonParser.funcdef(PythonParser.java:1389)
Comment 1 blackrat 2009-02-04 15:47:01 UTC
Created attachment 76564 [details]
stacktrace
Comment 2 Lou Dasaro 2015-05-18 05:47:00 UTC
Unable to replicate anomaly. Was probably fixed long, long ago. If not, was certainly fixed by porting Python Editor APIs from GSF to CSL.
http://hg.netbeans.org/main/contrib/rev/94fd635a7eb3