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

test\java\awt\Mixing\setComponentZOrder.java fails with JDK7b22

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7
    • client-libs
    • None
    • generic
    • linux

      The test\java\awt\Mixing\setComponentZOrder.java fails on Linux Ubuntu with the following test output. Works fine on Windows2000.

      #Test Results (version 2)
      #Mon Oct 22 17:28:35 MSD 2007
      #checksum:70d8d37838e1945a
      #-----testdescription-----
      $file=/.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/Mixing/setComponentZOrder.java
      $root=/.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test
      author=antohny.petrov@...: area=awt.mixing
      keywords=bug6589530
      run=USER_SPECIFIED main setComponentZOrder\n
      source=setComponentZOrder.java
      title=Mixing code should correctly handle insertion of components with setComponentZOrder.

      #-----environment-----

      #-----testresult-----
      description=file:///.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/Mixing/setComponentZOrder.java
      end=Mon Oct 22 17:28:35 MSD 2007
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      javatestOS=Linux 2.4.21-4.ELsmp (i386)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Mon Oct 22 17:28:33 MSD 2007
      status=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      test=java/awt/Mixing/setComponentZOrder.java
      work=/.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/Mixing/JTwork/java/awt/Mixing

      #section:script_messages
      ----------messages:(4/213)----------
      JDK under test: (/net/archer/export5/re/jdk/7.0/latest/binaries/linux-i586)
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b19)
      Java HotSpot(TM) Server VM (build 1.7.0-ea-b19, mixed mode)

      #section:build
      ----------messages:(3/104)----------
      command: build setComponentZOrder
      reason: Named class compiled on demand
      elapsed time (seconds): 0.922
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/210)----------
      command: compile /.automount/jse-st01/root/export3/awt/users/ad153231/dolphin_b19_n2/test/java/awt/Mixing/setComponentZOrder.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.92
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/122)----------
      command: main setComponentZOrder
      reason: User specified action: run main setComponentZOrder
      elapsed time (seconds): 1.26
      ----------System.out:(6/546)----------
      Any messages for the tester will display here.
      Any messages for the tester will display here.
      The test failed: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      The test failed: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      The test is over, hit Ctl-C to stop Java VM
      The test is over, hit Ctl-C to stop Java VM
      ----------System.err:(27/2034)----------
      java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      at java.awt.Container.getComponent(Container.java:307)
      at java.awt.Component.mixOnZOrderChanging(Component.java:9701)
      at java.awt.Container.setComponentZOrder(Container.java:713)
      at setComponentZOrder.init(setComponentZOrder.java:64)
      at setComponentZOrder.main(setComponentZOrder.java:105)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:659)
      java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      at setComponentZOrder.fail(setComponentZOrder.java:179)
      at setComponentZOrder.init(setComponentZOrder.java:67)
      at setComponentZOrder.main(setComponentZOrder.java:105)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:659)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: The setComponentZOrder method used to insert a component caused the mixing code to throw the exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1

            anthony Anthony Petrov (Inactive)
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: