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 222929 - ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.analysis.Configuration
Summary: ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.a...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-28 22:12 UTC by Jiri Prox
Modified: 2012-12-04 03:19 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188475


Attachments
stacktrace (11.58 KB, text/plain)
2012-11-28 22:12 UTC, Jiri Prox
Details
stacktrace (11.58 KB, text/plain)
2012-11-29 14:29 UTC, msandoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-11-28 22:12:04 UTC
Build: NetBeans IDE Dev (Build 201211260002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b15
OS: Windows 7

User Comments:
bokc: create news configuration

jiriprox: CCE when switching analyzer in Manage Configuration dialog

mklaehn: clicking on inspection node to expand the Inspection group node (Threading)

GUEST: called this buggy inspect source thing




Stacktrace: 
java.lang.ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.analysis.Configuration
   at org.netbeans.modules.analysis.ui.AdjustConfigurationPanel.updateConfiguration(AdjustConfigurationPanel.java:138)
   at org.netbeans.modules.analysis.ui.AdjustConfigurationPanel.access$100(AdjustConfigurationPanel.java:71)
   at org.netbeans.modules.analysis.ui.AdjustConfigurationPanel$1.actionPerformed(AdjustConfigurationPanel.java:98)
   at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1260)
   at javax.swing.JComboBox.contentsChanged(JComboBox.java:1331)
   at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:118)
Comment 1 Jiri Prox 2012-11-28 22:12:06 UTC
Created attachment 128539 [details]
stacktrace
Comment 2 msandoz 2012-11-29 14:29:33 UTC
Created attachment 128587 [details]
stacktrace

configuring custom source code analyzer configuration
Comment 3 Jan Lahoda 2012-12-03 19:41:50 UTC
I hope this will be sufficient to fix the problem:
http://hg.netbeans.org/jet-main/rev/3c46a995443a
Comment 4 Quality Engineering 2012-12-04 03:19:52 UTC
Integrated into 'main-golden', will be available in build *201212040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3c46a995443a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #222929: seems that the whole editable combo might receive focus lost before (or instead?) of focus lost of its editor - need to finish the editing even in such a case.