Community
Participate
Working Groups
Build Identifier: 20110916-0149 WindowBuilder successfully parses the parent class but fails (throws an array index out of bounds exception) when parsing a very simple subclass that uses visual inheritance. I have included the stripped down source files that should allow the error to be reproduced. Reproducible: Always Steps to Reproduce: 1.Attempt to go into design mode on child class 2. 3.
Created attachment 204778 [details] The report file produced by WindowBuilder The attached is the .zip report file generated by WindowBuilder
Stack trace of parsing error: ---------------------------------------------------------------- Internal Error WindowBuilder encountered unexpected internal error. This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partial update, etc. java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 Show stack trace. Hide stack trace. Stack trace: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.eclipse.wb.internal.swing.model.component.menu.MenuUtils.setItemsBounds(MenuUtils.java:43) at org.eclipse.wb.internal.swing.model.component.menu.JMenuBarInfo.refresh_fetch(JMenuBarInfo.java:116) at org.eclipse.wb.core.model.ObjectInfo.refresh_fetch(ObjectInfo.java:645) at org.eclipse.wb.internal.swing.model.component.ComponentInfo.access$1(ComponentInfo.java:1) at org.eclipse.wb.internal.swing.model.component.ComponentInfo$3.run(ComponentInfo.java:141) at org.eclipse.wb.internal.swing.model.component.ComponentInfo.refresh_fetch(ComponentInfo.java:180) at org.eclipse.wb.internal.swing.model.component.ComponentInfo.refresh_fetch(ComponentInfo.java:139) at org.eclipse.wb.internal.swing.model.component.ContainerInfo.refresh_fetch(ContainerInfo.java:251) at org.eclipse.wb.core.model.ObjectInfo$6$1.run(ObjectInfo.java:496) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139) at org.eclipse.wb.core.model.ObjectInfo$6.run(ObjectInfo.java:494) at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Full context stack trace: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.eclipse.wb.internal.swing.model.component.menu.MenuUtils.setItemsBounds(MenuUtils.java:43) at org.eclipse.wb.internal.swing.model.component.menu.JMenuBarInfo.refresh_fetch(JMenuBarInfo.java:116) at org.eclipse.wb.core.model.ObjectInfo.refresh_fetch(ObjectInfo.java:645) at org.eclipse.wb.internal.swing.model.component.ComponentInfo.access$1(ComponentInfo.java:1) at org.eclipse.wb.internal.swing.model.component.ComponentInfo$3.run(ComponentInfo.java:141) at org.eclipse.wb.internal.swing.model.component.ComponentInfo.refresh_fetch(ComponentInfo.java:180) at org.eclipse.wb.internal.swing.model.component.ComponentInfo.refresh_fetch(ComponentInfo.java:139) at org.eclipse.wb.internal.swing.model.component.ContainerInfo.refresh_fetch(ContainerInfo.java:251) at org.eclipse.wb.core.model.ObjectInfo$6$1.run(ObjectInfo.java:496) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139) at org.eclipse.wb.core.model.ObjectInfo$6.run(ObjectInfo.java:494) at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
All existing visual inheritance test cases are passing. The test case provided by this report is incomplete and does not compile, so we are not able to reproduce the problem. Please provide a complete test case and re-open this case.