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 132850 - ClassCastException: org.netbeans.editor.ext.ExtSyntaxSupport cannot be cast to org.netbeans.modules.xml.text.syntax.XMLSyntaxSupport
Summary: ClassCastException: org.netbeans.editor.ext.ExtSyntaxSupport cannot be cast t...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: API (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 09:52 UTC by Petr Dvorak
Modified: 2008-11-18 15:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 46952


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-04-15 09:52:33 UTC
Build: NetBeans IDE Dev (Build 200804110003)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b12
OS: Linux, 2.6.22-14-generic, i386

User comments: I have opened Hg versioned project (NB Plugin) and I opened an XML file in the editor. Then I invoked a
Copy action in the XML code and when I pressed Enter in order to make some space for the Paste action, this exception
was thrown.

STACKTRACE: (first 10 lines)
java.lang.ClassCastException: org.netbeans.editor.ext.ExtSyntaxSupport cannot be cast to
org.netbeans.modules.xml.text.syntax.XMLSyntaxSupport
        at org.netbeans.modules.xml.text.completion.XMLCompletionProvider.getAutoQueryTypes(XMLCompletionProvider.java:78)
        at org.netbeans.modules.editor.completion.CompletionImpl.insertUpdate(CompletionImpl.java:287)
        at
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:70)
        at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
        at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1398)
        at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:645)
        at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:201)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentLine(FormatterImpl.java:138)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentNewLine(FormatterImpl.java:133)
        at org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1122)
Comment 1 Samaresh Panda 2008-04-16 16:43:40 UTC
6.1 is almost out, hence this will go into some later release post 6.1.
Fixed: http://hg.netbeans.org/main/rev/0c4d2e2f519c.
Comment 2 Petr Dvorak 2008-05-13 13:17:04 UTC
Not reproducible + reviewed the source code (there is no cast, instanceof is used instead) -> verified
Comment 3 Exceptions Reporter 2008-10-10 16:26:33 UTC
Reopening - reproduced in NetBeans IDE 6.1 (Build 200807020101)
http://statistics.netbeans.org/exceptions/detail.do?id=126287
Comment 4 Samaresh Panda 2008-10-10 16:38:25 UTC
The fix was made in 6.5 so it can only be verified in 6.5.
Comment 5 Petr Dvorak 2008-11-18 15:18:08 UTC
Verified, incorrectly reopened by "exceptions_reporter".