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 158622 - ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.ast.modType
Summary: ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.py...
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 15:57 UTC by Exceptions Reporter
Modified: 2015-05-18 05:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 144666


Attachments
stacktrace (1.27 KB, text/plain)
2009-02-16 15:58 UTC, Exceptions Reporter
Details
stacktrace (2.09 KB, text/plain)
2009-03-29 15:36 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-02-16 15:57:57 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
jymen: class Suspended :
    """
    def __init__( self ): 
        self._suspended = {}
        self._lock = threading.Lock()

Entering a """ three  quoted

jsober: Editing within a function.

lebedkov: editing



Stacktrace: 
java.lang.ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.ast.modType
        at org.python.antlr.ModuleParser.file_input(ModuleParser.java:40)
        at org.netbeans.modules.python.editor.PythonParser.parse(PythonParser.java:213)
        at org.netbeans.modules.python.editor.PythonParser.sanitize(PythonParser.java:338)
        at org.netbeans.modules.python.editor.PythonParser.parse(PythonParser.java:94)
        at org.netbeans.modules.python.editor.PythonParser.parseFiles(PythonParser.java:307)
        at org.netbeans.napi.gsfret.source.Source.moveToPhase(Source.java:1056)
Comment 1 Exceptions Reporter 2009-02-16 15:58:02 UTC
Created attachment 77029 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-03-29 15:36:41 UTC
Build: NetBeans IDE 6.5 (Build 200812050001)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.ast.modType
        at org.python.antlr.ModuleParser.file_input(ModuleParser.java:40)
        at org.netbeans.modules.python.editor.PythonParser.parse(PythonParser.java:213)
        at org.netbeans.modules.python.editor.PythonParser.sanitize(PythonParser.java:338)
        at org.netbeans.modules.python.editor.PythonParser.parse(PythonParser.java:94)
        at org.netbeans.modules.python.editor.PythonParser.parseFiles(PythonParser.java:307)
        at org.netbeans.napi.gsfret.source.ParserTaskImpl.parse(ParserTaskImpl.java:170)
Comment 3 Exceptions Reporter 2009-03-29 15:36:45 UTC
Created attachment 79014 [details]
stacktrace
Comment 4 Lou Dasaro 2015-05-18 05:32:31 UTC
Unable to replicate anomaly. Was probably fixed long, long ago.