Project: SWT
Bug 272827 CCE in Text.getLineHeight()
Reported: 2009-04-19 12:29:07 | Status: resolved fixed

HEAD - open New Java Class wizard - type a class name - in Superclass field, type "D" - press Ctrl+Space !ENTRY org.eclipse.ui 4 0 2009-04-19 18:23:46.252 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.ClassCastException: org.eclipse.swt.internal.cocoa.SWTTextField at org.eclipse.swt.widgets.Text.getLineHeight(Text.java:850) at org.eclipse.jface.contentassist.TextContentAssistSubjectAdapter.getLineHeight(TextContentAssistSubjectAdapter.java:103) at org.eclipse.jface.text.contentassist.ContentAssistSubjectControlAdapter.getLineHeight(ContentAssistSubjectControlAdapter.java:77) at org.eclipse.jface.text.contentassist.ContentAssistant$LayoutManager.getCaretRectangle(ContentAssistant.java:714) at org.eclipse.jface.text.contentassist.ContentAssistant$LayoutManager.computeBoundsBelowAbove(ContentAssistant.java:676) at org.eclipse.jface.text.contentassist.ContentAssistant$LayoutManager.layoutProposalSelector(ContentAssistant.java:511) at org.eclipse.jface.text.contentassist.ContentAssistant$LayoutManager.layout(ContentAssistant.java:486) at org.eclipse.jface.text.contentassist.ContentAssistant$LayoutManager.add(ContentAssistant.java:423) at org.eclipse.jface.text.contentassist.ContentAssistant.addToLayout(ContentAssistant.java:1438) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.createProposalSelector(CompletionProposalPopup.java:626) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$22(CompletionProposalPopup.java:571) at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:498) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482) at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1660) at org.eclipse.ui.contentassist.ContentAssistHandler$4.execute(ContentAssistHandler.java:220) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:930) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3486) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1230) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1238) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1267) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1263) at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1362) at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:923) at org.eclipse.swt.widgets.Display.fieldEditorProc(Display.java:4382) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:205) at org.eclipse.swt.widgets.Widget.superKeyDown(Widget.java:1600) at org.eclipse.swt.widgets.Widget.keyDown(Widget.java:892) at org.eclipse.swt.widgets.Control.keyDown(Control.java:2039) at org.eclipse.swt.widgets.Display.fieldEditorProc(Display.java:4374) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:205) at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1713) at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:1770) at org.eclipse.swt.widgets.Display.windowDelegateProc(Display.java:4631) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4193) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4214) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:101) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3042) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.jdt.ui.actions.AbstractOpenWizardAction.run(AbstractOpenWizardAction.java:84) at org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction.run(NewTypeDropDownAction.java:157) at org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction.run(NewTypeDropDownAction.java:208) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3487) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1230) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1238) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1059) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3386) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3045) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2393) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2357) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2209) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511) at org.eclipse.equinox.launcher.Main.run(Main.java:1284) at org.eclipse.equinox.launcher.Main.main(Main.java:1260)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java