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 251393 - ClassCastException: org.openide.text.FilterDocument cannot be cast to javax.swing.text.AbstractDocument
Summary: ClassCastException: org.openide.text.FilterDocument cannot be cast to javax.s...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 10:38 UTC by Milos Kleint
Modified: 2015-03-25 03:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 216330


Attachments
stacktrace (2.45 KB, text/plain)
2015-03-24 10:38 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2015-03-24 10:38:01 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Mac OS X

User Comments:
mkleint: testing puppet editor kit




Stacktrace: 
java.lang.ClassCastException: org.openide.text.FilterDocument cannot be cast to javax.swing.text.AbstractDocument
   at org.netbeans.editor.BaseTextUI.rootViewReplaceNotify(BaseTextUI.java:142)
   at org.netbeans.editor.BaseTextUI.modelChanged(BaseTextUI.java:156)
   at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1794)
   at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
Comment 1 Milos Kleint 2015-03-24 10:38:03 UTC
Created attachment 152809 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-03-24 14:29:57 UTC
It is unnecessary to use AbstractDocument for this variable. http://hg.netbeans.org/jet-main/rev/4ee22659ad57
Comment 3 Quality Engineering 2015-03-25 03:21:50 UTC
Integrated into 'main-silver', will be available in build *201503250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4ee22659ad57
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #251393 - ClassCastException: org.openide.text.FilterDocument cannot be cast to javax.swing.text.AbstractDocument