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 33110

Summary: Clone View throws java.lang.ClassCastException
Product: platform Reporter: Keiichi Oono <keiichio>
Component: Window SystemAssignee: mslama <mslama>
Status: CLOSED INVALID    
Severity: blocker CC: jf4jbug, mmirilovic, pzavadsky
Priority: P2    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: ide.log file when an Exception was thrown

Description Keiichi Oono 2003-04-22 08:44:58 UTC
Sun ONE Studio 5 (Build 030416)
JDK 1.4.1_01

To reproduce:
- right-click output window tab and select Clone
View
- right-click project tab in explorer window and
select Clone View

ClassCastException is thrown.
I attache ide.log in this report.
Comment 1 Keiichi Oono 2003-04-22 08:46:33 UTC
Created attachment 10057 [details]
ide.log file when an Exception was thrown
Comment 2 mslama 2003-04-22 10:23:21 UTC
The problem is that given TopComponents provide CloneViewAction but
they do not implement it. So they should either provide and implement
it or not provide it. (In addition action could be also
enabled/disabled but when TopComponent does not want to be clonable it
should not provide CloneViewAction.)
Comment 3 mslama 2003-04-22 10:36:30 UTC
I filed 2 separate issues #33116 for ProjectsTab and #33117 for
OutputTabTerm.
Comment 4 mslama 2003-04-22 12:27:04 UTC
As I filed another issues instead of this issue I will close this issue.
Comment 5 Marian Mirilovic 2003-04-23 10:51:48 UTC
closed