Project: Eclipse_Platform_UI
Bug 108624 [Coolbar] incorrect downcast in SubCoolBarManager.getStyle()
Reported: 2005-09-01 15:34:23 | Status: verified fixed

The downcast in this method public int getStyle() { // It is okay to cast down since we only accept coolBarManager objects in the // constructor return ((CoolBarManager) getParent()).getStyle(); } is not okay because the constructor accepts ICoolBarManager objects. Since ICoolBarManager has a method getStyle(), the downcast should be to ICoolBarManager, not to CoolBarManager.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubCoolBarManager.java