Skip to content

Unstable test 'test_popupSubMenuLocation' #1344

@ptziegler

Description

@ptziegler
Index 0 out of bounds for length 0
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
	at java.base/java.util.Objects.checkIndex(Objects.java:365)
	at java.base/java.util.ArrayList.get(ArrayList.java:428)
	at org.eclipse.wb.tests.designer.swt.model.menu.MenuComplexTest.test_popupSubMenuLocation(MenuComplexTest.java:218)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
Jan. 14, 2026 6:19:38 AM org.eclipse.wb.tests.designer.tests.DesignerTestCase$LoggerExtension beforeTestExecution
INFORMATION: MenuComplexTest:test_popupSubMenuLocation()

See:

Surprisingly only on Windows and only with the 2026-03 staging repository. My guess is that the parsing is not complete. For debugging, we should add a JUnit rule that prints the contents of the Java file and the model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions