Community
Participate
Working Groups
Build Identifier: 20100917-0705 Whenm drawing a simple JPanel and adding some components (i.e. radiobuttons, checkboxes, labels, ...) and changing a components enabled state (a couple of times), windowbuilder crashes with an AssertionFailedException: Stack trace: org.eclipse.wb.internal.core.utils.check.AssertionFailedException: assertion failed: Execution flow problem. { JCheckBox chckbxNewCheckBox_1=new JCheckBox("New check box"); chckbxNewCheckBox_1.setEnabled(false); add(chckbxNewCheckBox_1); JButton btnNewButton=new JButton("New button"); add(btnNewButton); JRadioButton rdbtnNewRadioButton=new JRadioButton("New radio button"); add(rdbtnNewRadioButton); JLabel lblNewLabel=new JLabel("New label"); add(lblNewLabel); textField=new JTextField(); add(textField); textField.setColumns(10); JButton btnNewButton_1=new JButton("New button"); add(btnNewButton_1); JEditorPane editorPane=new JEditorPane(); add(editorPane); JCheckBox chckbxNewCheckBox=new JCheckBox("New check box"); chckbxNewCheckBox.setEnabled(false); add(chckbxNewCheckBox); jbInit(); } expected, but textField=new JTextField(); found. at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:224) at org.eclipse.wb.internal.core.utils.check.Assert.isTrue(Assert.java:289) at org.eclipse.wb.core.eval.ExecutionFlowDescription.leaveStatement(ExecutionFlowDescription.java:152) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:318) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:229) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:192) at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1168) at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:540) at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:536) at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:493) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139) at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:491) at org.eclipse.wb.internal.swing.utils.SwingUtils$1.run(SwingUtils.java:73) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Full context stack trace: org.eclipse.wb.internal.core.utils.check.AssertionFailedException: assertion failed: Execution flow problem. { JCheckBox chckbxNewCheckBox_1=new JCheckBox("New check box"); chckbxNewCheckBox_1.setEnabled(false); add(chckbxNewCheckBox_1); JButton btnNewButton=new JButton("New button"); add(btnNewButton); JRadioButton rdbtnNewRadioButton=new JRadioButton("New radio button"); add(rdbtnNewRadioButton); JLabel lblNewLabel=new JLabel("New label"); add(lblNewLabel); textField=new JTextField(); add(textField); textField.setColumns(10); JButton btnNewButton_1=new JButton("New button"); add(btnNewButton_1); JEditorPane editorPane=new JEditorPane(); add(editorPane); JCheckBox chckbxNewCheckBox=new JCheckBox("New check box"); chckbxNewCheckBox.setEnabled(false); add(chckbxNewCheckBox); jbInit(); } expected, but textField=new JTextField(); found. at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:224) at org.eclipse.wb.internal.core.utils.check.Assert.isTrue(Assert.java:289) at org.eclipse.wb.core.eval.ExecutionFlowDescription.leaveStatement(ExecutionFlowDescription.java:152) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:318) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:229) at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:192) at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1168) at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:540) at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:536) at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:493) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139) at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:491) at org.eclipse.wb.internal.swing.utils.SwingUtils$1.run(SwingUtils.java:73) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Reproducible: Always Steps to Reproduce: 1. Draw a simple JPanel 2. Add some components to the panel 3. Change a component's enabled state (various times)
Fixed in trunk, will be in next build.