Viewing Issue Advanced Details

ID 0003856 Category [DMDirc] User Interface Severity minor
Reproducibility always Date Submitted 2010-03-07 02:03 Last Update 2010-03-13 22:08
Reporter Error Reporter Assigned To Greboid View Status public
Priority normal Status resolved Resolution fixed
Platform Fixed in Version Target Version 0.6.4
Product Version Product Build 0.6.3-17-ge089272
Summary 0003856: Error processing action: com.dmdirc.addons.ui_swing.framemanager.windowmenu.FrameContainerMenu cannot be cast to com.dmdirc.addo
Description
java.lang.ClassCastException: com.dmdirc.addons.ui_swing.framemanager.windowmenu.FrameContainerMenu cannot be cast to com.dmdirc.addons.ui_swing.framemanager.windowmenu.FrameContainerMenuItem
com.dmdirc.addons.ui_swing.framemanager.windowmenu.WindowMenuFrameManager.getIndex(WindowMenuFrameManager.java:421)
com.dmdirc.addons.ui_swing.framemanager.windowmenu.WindowMenuFrameManager.addWindow(WindowMenuFrameManager.java:167)
com.dmdirc.ui.WindowManager.fireAddWindow(WindowManager.java:402)
com.dmdirc.ui.WindowManager.addWindow(WindowManager.java:148)
com.dmdirc.Server.<init>(Server.java:182)
com.dmdirc.commandparser.commands.global.NewServer.execute(NewServer.java:82)
com.dmdirc.commandparser.parsers.GlobalCommandParser.executeCommand(GlobalCommandParser.java:81)
com.dmdirc.commandparser.parsers.CommandParser.parseCommand(CommandParser.java:159)
com.dmdirc.commandparser.parsers.CommandParser.parseCommand(CommandParser.java:210)
com.dmdirc.actions.ActionModel.trigger(ActionModel.java:149)
com.dmdirc.actions.Action.trigger(Action.java:563)
com.dmdirc.actions.ActionManager.triggerActions(ActionManager.java:412)
com.dmdirc.actions.ActionManager.processEvent(ActionManager.java:391)
com.dmdirc.Main.init(Main.java:150)
com.dmdirc.Main.main(Main.java:86)
Needs unit test no
Upstream Bug URL

Relationships

Notes

A patchset (1) related to this change has been added to gerrit by Greboid

Fixes issue 3856

It would seem i messed up the merging of the edt commit with the trunk

Change-Id: I11609dd100a9bec6534fd2a628376a7471d0ce0a
authorGreboid <greg@dmdirc.com>2010-03-07 02:04:55 (GMT)
committer Chris Smith <chris@dmdirc.com>2010-03-07 02:08:54 (GMT)
commitcfd5f9a44ec6b6f230269f88a97eda70aa348bb0 (patch) (side-by-side diff)
It would seem i messed up the merging of the edt commit with the trunk Change-Id: I11609dd100a9bec6534fd2a628376a7471d0ce0a Reviewed-on: http://gerrit.dmdirc.com/970 Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com> Reviewed-by: Chris Smith <chris@dmdirc.com>
-rw-r--r--src/com/dmdirc/addons/ui_swing/framemanager/windowmenu/WindowMenuFrameManager.java5
1 files changed, 2 insertions, 3 deletions
Click to Expand/Collapse
diff src/com/dmdirc/addons/ui_swing/framemanager/windowmenu/WindowMenuFrameManager.java
@@ -406,7 +406,7 @@ public final class WindowMenuFrameManager extends JMenu implements
}
});
for (int i = count; i < menuItemCount; i++) {
- if (!(menu.getMenuComponent(i) instanceof FrameContainerMenuItem)) {
+ if (!(menu.getMenuComponent(i) instanceof FrameContainerMenuIterface)) {
continue;
}
final int index = i;
@@ -418,8 +418,7 @@ public final class WindowMenuFrameManager extends JMenu implements
setObject(menu.getMenuComponent(index));
}
});
- final FrameContainer child =
- ((FrameContainerMenuItem) component).getFrame();
+ final FrameContainer child = ((FrameContainerMenuIterface) component).getFrame();
if (sortBefore(newChild, child)) {
return i;
} else if (!sortAfter(newChild, child) && IdentityManager.

Issue History

Date Modified Username Field Change
2010-03-07 02:03 Error Reporter New Issue
2010-03-07 02:03 Error Reporter Status new => assigned
2010-03-07 02:03 Error Reporter Assigned To => Greboid
2010-03-07 02:05 Version Control Checkin
2010-03-07 02:05 Version Control Note Added: 0010132
2010-03-07 02:05 Version Control Status assigned => fix pending
2010-03-07 02:09 Greboid Checkin
2010-03-07 02:09 Greboid Note Added: 0010135
2010-03-07 02:09 Greboid Status fix pending => resolved
2010-03-07 02:09 Greboid Resolution open => fixed
2010-03-13 22:08 Greboid View Status private => public