Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360285 - Array Index out of bounds error when parsing a class that uses visual inheritance
Summary: Array Index out of bounds error when parsing a class that uses visual inherit...
Status: CLOSED WORKSFORME
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: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 16:51 EDT by Clarkb CLA
Modified: 2021-06-04 16:44 EDT (History)
1 user (show)

See Also:


Attachments
The report file produced by WindowBuilder (82.50 KB, application/zip)
2011-10-07 16:55 EDT, Clarkb CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clarkb CLA 2011-10-07 16:51:43 EDT
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.
Comment 1 Clarkb CLA 2011-10-07 16:55:55 EDT
Created attachment 204778 [details]
The report file produced by WindowBuilder

The attached is the .zip report file generated by WindowBuilder
Comment 2 Clarkb CLA 2011-10-07 17:01:38 EDT
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)
Comment 3 Eric Clayberg CLA 2011-10-08 12:32:09 EDT
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.