Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310487

java/awt/Choice/RemoveAllShrinkTest/RemoveAllShrinkTest.java: java.lang.ArrayIndexOutOfBoundsException: 4 >= 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 17, 20, 21
    • client-libs
    • None
    • generic
    • linux

      The test java/awt/Choice/RemoveAllShrinkTest/RemoveAllShrinkTest.java intermittently fails on Ubuntu 20.04 22.04 with the following diagnostic:

      ====================8<--------------------
      #section:main
      ----------messages:(7/279)----------
      command: main RemoveAllShrinkTest
      reason: User specified action: run main RemoveAllShrinkTest
      started: Wed Jun 21 00:08:38 CEST 2023
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      finished: Wed Jun 21 00:08:38 CEST 2023
      elapsed time (seconds): 0.203
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(33/2582)----------
      java.lang.ArrayIndexOutOfBoundsException: 4 >= 0
      at java.base/java.util.Vector.elementAt(Vector.java:466)
      at java.desktop/java.awt.Choice.getItemImpl(Choice.java:202)
      at java.desktop/java.awt.Choice.getItem(Choice.java:194)
      at java.desktop/sun.awt.X11.XChoicePeer.getMinimumSize(XChoicePeer.java:538)
      at java.desktop/sun.awt.X11.XComponentPeer.getPreferredSize(XComponentPeer.java:577)
      at java.desktop/java.awt.Component.preferredSize(Component.java:2731)
      at java.desktop/java.awt.Component.getPreferredSize(Component.java:2711)
      at java.desktop/java.awt.BorderLayout.layoutContainer(BorderLayout.java:820)
      at java.desktop/java.awt.Container.layout(Container.java:1541)
      at java.desktop/java.awt.Container.doLayout(Container.java:1530)
      at java.desktop/java.awt.Container.validateTree(Container.java:1725)
      at java.desktop/java.awt.Container.validate(Container.java:1660)
      at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2778)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      STATUS:Failed.`main' threw exception: java.lang.ArrayIndexOutOfBoundsException: 4 >= 0
      ====================8<--------------------

      The issue was observed with 17.0.2+8-86, 21-ea+26-2328

      Reproducibility: ~40%

      Steps to reproduce:

      $ runme.sh [jtreg_home] [test_jdk] "" test/jdk/java/awt/Choice/RemoveAllShrinkTest/RemoveAllShrinkTest.java

      see the attached runme.sh

            prr Philip Race
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: