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.
Build: NetBeans IDE 6.8 (Build 200912041610) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Linux, 2.6.28-15-generic, i386 User Comments: apepin: Steps to reproduce: - create application - set a breakpoint - start debugger - open Sessions view - move any colummn in the first place instead of Name - double click on cell (0,0) in the table Result: exception occurs Stacktrace: java.lang.ClassCastException: org.netbeans.modules.viewmodel.TreeModelNode$MyProperty cannot be cast to org.openide.explorer.view.VisualizerNode at org.openide.explorer.view.Visualizer.findNode(Visualizer.java:87) at org.openide.explorer.view.OutlineView$OutlineViewOutline.editCellAt(OutlineView.java:925) at javax.swing.plaf.basic.BasicTableUI$Handler.adjustSelection(BasicTableUI.java:1084) at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:1014) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
Created attachment 92758 [details] stacktrace
This happens in all debugging windows. IMO it should be fixed in 6.8 patch 1.
Martin, do you know this problem?
I have not seen this yet. It was introduced by the fix of bug #174433. It looks like the condition "if (column == 0) {" is wrong. When the nodes column is not the first one, it does not work. The correct would be to call Outline.isTreeColumnIndex(column) which would need to be protected, or something like that...
core-main/rev/5d8dadca6600
Integrated into 'main-golden', will be available in build *200912220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5d8dadca6600 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #178852: ClassCastException: org.netbeans.modules.viewmodel.TreeModelNode$MyProperty cannot be cast to org.openide.explorer.view.VisualizerNode
was not able to reproduce using those steps in Product Version: NetBeans IDE Dev (Build 201001150201) Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101 System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb) Userdir: /Users/tomas/.netbeans/dev Verified.
The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/790fdc18f866
verified in patch1 build 20100128