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 197513 - ClassCastException: org.netbeans.core.windows.view.ui.DefaultSeparateContainer$ModeDialog cannot be cast to java.awt.Frame
Summary: ClassCastException: org.netbeans.core.windows.view.ui.DefaultSeparateContaine...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 7.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 20:24 UTC by stiffuser
Modified: 2011-04-13 08:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 166825


Attachments
stacktrace (3.09 KB, text/plain)
2011-04-06 20:24 UTC, stiffuser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stiffuser 2011-04-06 20:24:07 UTC
This issue was reported manually by stiffuser.
It already has 5 duplicates 


Build: NetBeans IDE 7.0 RC1 (Build 201103280000)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

User Comments:
GUEST: Pressed cmd-s in output window




Stacktrace: 
java.lang.ClassCastException: org.netbeans.core.windows.view.ui.DefaultSeparateContainer$ModeDialog cannot be cast to java.awt.Frame
   at org.netbeans.core.output2.OutputTab.showFileChooser(OutputTab.java:475)
   at org.netbeans.core.output2.OutputTab.saveAs(OutputTab.java:438)
   at org.netbeans.core.output2.OutputTab$TabAction.actionPerformed(OutputTab.java:855)
   at org.netbeans.core.output2.ui.WeakAction.actionPerformed(WeakAction.java:82)
   at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1645)
   at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
Comment 1 stiffuser 2011-04-06 20:24:11 UTC
Created attachment 107565 [details]
stacktrace
Comment 2 Martin Entlicher 2011-04-07 15:19:55 UTC
This is MAC-specific.
Comment 3 Martin Entlicher 2011-04-12 15:36:03 UTC
Fixed by changeset:   192344:857a55e42127
http://hg.netbeans.org/main/rev/857a55e42127
Comment 4 Quality Engineering 2011-04-13 08:43:33 UTC
Integrated into 'main-golden', will be available in build *201104130401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/857a55e42127
User: mentlicher@netbeans.org
Log: #197513 The top level ancestor can be a Frame or a Dialog.