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 196168 - ClassCastException: java.awt.Color cannot be cast to java.lang.Boolean
Summary: ClassCastException: java.awt.Color cannot be cast to java.lang.Boolean
Status: RESOLVED DUPLICATE of bug 197534
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 18:03 UTC by Jesse Glick
Modified: 2011-10-12 09:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 176172


Attachments
stacktrace (6.40 KB, text/plain)
2011-03-01 18:04 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-03-01 18:03:58 UTC
Build: NetBeans IDE Dev (Build 110301-b86a0857e6ec)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
GUEST: Entered Math.signum()

GUEST: Entered "import java.lang.Math.*;"

GUEST: Creating a simple application with struts / spring integration. Went to project properties to verify the spring framework version and the libraries. Did that a few times and on clicking ok, I got this.

GUEST: I was just editing a source file.

GUEST: Entering simple java code.  This fixed a flagged error and was thrown when error was unmarked?




Stacktrace: 
java.lang.ClassCastException: java.awt.Color cannot be cast to java.lang.Boolean
   at org.netbeans.modules.editor.lib2.view.HighlightsViewUtils.strikeThrough(HighlightsViewUtils.java:195)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewUtils.findAffectedLayoutIndex(HighlightsViewUtils.java:138)
   at org.netbeans.modules.editor.lib2.view.EditorBoxViewChildren.setVisualIndexAndOffset(EditorBoxViewChildren.java:216)
   at org.netbeans.modules.editor.lib2.view.EditorBoxViewChildren.replace(EditorBoxViewChildren.java:133)
   at org.netbeans.modules.editor.lib2.view.EditorBoxView.replace(EditorBoxView.java:289)
   at org.netbeans.modules.editor.lib2.view.ViewReplace.replaceViews(ViewReplace.java:132)
Comment 1 Jesse Glick 2011-03-01 18:04:02 UTC
Created attachment 106606 [details]
stacktrace
Comment 2 Miloslav Metelka 2011-10-12 09:41:04 UTC
This is fixed by checking both for Boolean and Color by issue 197534.

*** This bug has been marked as a duplicate of bug 197534 ***