Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339842 - AssertionFailedException in WindowBuilder
Summary: AssertionFailedException in WindowBuilder
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Scheglov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 03:33 EDT by Funkl CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Funkl CLA 2011-03-14 03:33:17 EDT
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)
Comment 1 Konstantin Scheglov CLA 2011-05-02 17:02:13 EDT
Fixed in trunk, will be in next build.