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 174011 - ClassCastException: javax.swing.JLabel
Summary: ClassCastException: javax.swing.JLabel
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Bugzilla (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Stola
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-07 20:19 UTC by Jaromir Uhrik
Modified: 2009-10-12 10:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 159744


Attachments
stacktrace (3.23 KB, text/plain)
2009-10-07 20:19 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-10-07 20:19:21 UTC
Build: NetBeans IDE Dev (Build 200910061401)
VM: Java HotSpot(TM) Client VM, 1.5.0_20-141, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_20-b02-315
OS: Mac OS X, 10.5.8, i386

User Comments:
juhrik: If the issue summary contains the "<title>" string then the exception appears when setting up such a summary.



Stacktrace: 
java.lang.ClassCastException: javax.swing.JLabel
        at javax.swing.text.html.EditableView.setParent(EditableView.java:91)
        at javax.swing.text.CompositeView.replace(CompositeView.java:200)
        at javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
        at javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:658)
        at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
        at javax.swing.text.FlowView.loadChildren(FlowView.java:122)
Comment 1 Jaromir Uhrik 2009-10-07 20:19:26 UTC
Created attachment 89047 [details]
stacktrace
Comment 2 Jaromir Uhrik 2009-10-07 20:22:28 UTC
In general any html tag in the title may cause the problem. I have found the issue when trying to display following
issue in netbeans:
http://kenai.com/jira/browse/KENAI-1332
Comment 3 Jan Stola 2009-10-08 16:03:17 UTC
Fixed.

Modified files: http://hg.netbeans.org/cdev/rev/a2010f8d552f
Comment 4 Jaromir Uhrik 2009-10-12 10:25:28 UTC
Verified in
Product Version: NetBeans IDE Dev (Build 200910100201)
Java: 1.5.0_20; Java HotSpot(TM) Client VM 1.5.0_20-141
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)