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.
NetBeans [build 20051122] Colab module installed from Development Update Center Steps to reproduce: 1) join a conversation 2) click Java icon (Alt-F3) or HTML, XML icon ERROR: get ClassCastException and user should restart IDE
Created attachment 27183 [details] stack trace
Created attachment 27188 [details] Better stack trace - first exception.
This used to work. Some recent change in editor have to cause this. Collab keeps a JEditorPane and calls setContentType on it from time to time, which should be legal, I think. In this particular case, there is JEditorPane set to edit mime "text" (bound to simple swing's DefaultEditorKit subclass), and then the mime is switched to "text/html" (bound to editor's kit).
The change that caused this was issue 61103 but it's desirable as it prevents repainting problems in the editor. I'll fix it in the view hierarchy.
Fixed in trunk: Checking in libsrc/org/netbeans/editor/DrawEngineLineView.java; /cvs/editor/libsrc/org/netbeans/editor/DrawEngineLineView.java,v <-- DrawEngineLineView.java new revision: 1.16; previous revision: 1.15
*** Issue 69375 has been marked as a duplicate of this issue. ***
I verified the fix, it works OK now.