Project: SWT
Bug 16553 SWT_AWT.new_Panel does not work
Reported: 2002-05-21 10:02:25 | Status: resolved fixed

The same piece of code workes properly in build 200204xx, public final void createPartControl(Composite composite) { this.container = composite; composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL)); final java.awt.Panel ilogpanel = SWT_AWT.new_Panel(composite); ... } but does not work in build after 20020502 and give the following log, !SESSION ---------------------------------------------------------------------- java.version=1.3.1_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN Command-line arguments: -os win32 -ws win32 -arch x86 -feature org.eclipse.platform -install file:D:/java_dev/eclipse/ !ENTRY org.eclipse.jdt.debug.ui 4 150 02-5-21 IAIc2:50 !MESSAGE Internal Error !STACK 1 org.eclipse.debug.core.DebugException[5010]: org.eclipse.jdi.TimeoutException at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply (PacketReceiveManager.java:127) at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply (PacketReceiveManager.java:137) at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:168) at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:186) at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:216) at org.eclipse.jdi.internal.ReferenceTypeImpl.signature (ReferenceTypeImpl.java:790) at org.eclipse.jdi.internal.ReferenceTypeImpl.name (ReferenceTypeImpl.java:776) at org.eclipse.jdt.internal.debug.core.model.JDIValue.getReferenceTypeName (JDIValue.java:139) at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getValueText (JDIModelPresentation.java:393) at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getVariableText (JDIModelPresentation.java:941) at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getText (JDIModelPresentation.java:176) at org.eclipse.debug.internal.ui.LazyModelPresentation.getText (LazyModelPresentation.java:69) at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText (DelegatingModelPresentation.java:122) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem (TreeViewer.java:82) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:354) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1134) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem (AbstractTreeViewer.java:258) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren (AbstractTreeViewer.java:243) at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand (AbstractTreeViewer.java:614) at org.eclipse.jface.viewers.AbstractTreeViewer$1.treeExpanded (AbstractTreeViewer.java:626) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:171) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:1715) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3597) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:571) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2702) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1970) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1147) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:147) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:1344) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2685) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1970) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1214) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1273) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:454) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:199) at org.eclipse.core.launcher.Main.run(Main.java:642) at org.eclipse.core.launcher.Main.main(Main.java:475) Thx in advanced

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT AWT/win32/org/eclipse/swt/internal/awt/win32/SWT_AWT.java