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

REGRESSION: JCK1.5 api/javax_swing/interactive/JLayeredPaneTests.html#JLayeredPa

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 09/14/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b19
                        (not reproducible with JDK1.4.2-b28, JDK1.5.0-b18)
      JCK : JCK1.5-runtime (b04)
      Platform[s] : generic
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
               api/javax_swing/interactive/JLayeredPaneTests.html#JLayeredPane [JLayeredPaneTest0003]

      JCK1.5 (b04) runtime interactive test
      api/javax_swing/interactive/JLayeredPaneTests.html#JLayeredPane fails with JDK1.5.0-b19.

      The test Description reads:
      ...
      Please verify that initially there are 5 components labeled 0 to 4 in various random colors.
      They're laid out in a front-to back order. Single click on the component will move it to the
      forefront. Double-click on the component will move it behind all of the others. Left-click
      followed by the right-click will dispose the component. A click on any uncovered area of the
      container will create a new numbered and rundomly colored component that's behind all of the
      others.
      ...

      Please, run the script from "How to reproduce" section and try to play with the panes:

      Double-clicking on JLayeredPane does not move it behind all the other components. The pane
      location remains the same, but java.lang.IllegalArgumentException is thrown instead (please,
      see "Script output" section for more details).

      Also I noticed that right click disposes the comonent, although Description reads: "Left-click
      followed by the right-click will dispose the component".

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15/tests/api/javax_swing/interactive/JLayeredPaneTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b19/jck15/linux/redhat9.0_gnome_smp_client_dsa_linux-22/workDir/api-interactive/javax_swing/interactive/JLayeredPaneTests_JLayeredPane.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables):

      --- script start ---
      #!/bin/bash
      JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
      JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/solaris-sparc"
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"
      export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      $JDK/bin/java -showversion javasoft.sqe.tests.api.javax.swing.interactive.JLayeredPane.JLayeredPaneTests -TestCaseID JLayeredPaneTest0003
      --- script end ---

      Script output:
      ==============
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b19)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b19, mixed mode)

      java.lang.IllegalArgumentException: illegal component position 5 should be less then 5
           at java.awt.Container.checkAdding(Container.java:409)
           at java.awt.Container.setComponentZOrder(Container.java:658)
           at javax.swing.JLayeredPane.setLayer(JLayeredPane.java:335)
           at javax.swing.JLayeredPane.setPosition(JLayeredPane.java:413)
           at javax.swing.JLayeredPane.moveToBack(JLayeredPane.java:395)
           at javasoft.sqe.tests.api.javax.swing.interactive.JLayeredPane.JLayeredPaneTests$testLbl.mouseClicked(JLayeredPaneTests.java:179)
           at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
           at java.awt.Component.processMouseEvent(Component.java:5422)
           at javax.swing.JComponent.processMouseEvent(JComponent.java:2936)
           at java.awt.Component.processEvent(Component.java:5216)
           at java.awt.Container.processEvent(Container.java:1951)
           at java.awt.Component.dispatchEventImpl(Component.java:3919)
           at java.awt.Container.dispatchEventImpl(Container.java:2009)
           at java.awt.Component.dispatchEvent(Component.java:3770)
           at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4011)
           at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3735)
           at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3656)
           at java.awt.Container.dispatchEventImpl(Container.java:1995)
           at java.awt.Window.dispatchEventImpl(Window.java:1746)
           at java.awt.Component.dispatchEvent(Component.java:3770)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      java.lang.IllegalArgumentException: illegal component position 5 should be less then 5
           at java.awt.Container.checkAdding(Container.java:409)
           at java.awt.Container.setComponentZOrder(Container.java:658)
           at javax.swing.JLayeredPane.setLayer(JLayeredPane.java:335)
           at javax.swing.JLayeredPane.setPosition(JLayeredPane.java:413)
           at javax.swing.JLayeredPane.moveToBack(JLayeredPane.java:395)
           at javasoft.sqe.tests.api.javax.swing.interactive.JLayeredPane.JLayeredPaneTests$testLbl.mouseClicked(JLayeredPaneTests.java:179)
           at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
           at java.awt.Component.processMouseEvent(Component.java:5422)
           at javax.swing.JComponent.processMouseEvent(JComponent.java:2936)
           at java.awt.Component.processEvent(Component.java:5216)
           at java.awt.Container.processEvent(Container.java:1951)
           at java.awt.Component.dispatchEventImpl(Component.java:3919)
           at java.awt.Container.dispatchEventImpl(Container.java:2009)
           at java.awt.Component.dispatchEvent(Component.java:3770)
           at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4011)
           at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3735)
           at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3656)
           at java.awt.Container.dispatchEventImpl(Container.java:1995)
           at java.awt.Window.dispatchEventImpl(Window.java:1746)
           at java.awt.Component.dispatchEvent(Component.java:3770)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      JLayeredPaneTest0003: Failed. JLayeredPane's positions within a layer does not behave as expected.
      STATUS:Failed.test cases: 1; all failed; first test case failure: JLayeredPaneTest0003

      Specific machine info:
      ======================
      Hostname: linux-22
      OS: RedHat Linux 9.0 (GNOME)

      ======================================================================

      ###@###.### 2003-09-24

      Same problem reported by a CAP member:
       J2SE Version (please include all output from java -version flag):
          java version "1.5.0-beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b20)
          Java HotSpot(TM) Client VM (build 1.5.0-beta-b20, mixed mode)

      Does this problem occur on J2SE 1.3 or 1.4.x? Yes / No (pick one)
          No

      Operating System Configuration Information (be specific):
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

      Hardware Configuration Information (be specific):

          Platform configuration:

          CPU: Intel 32bit Single Processor
          Processor Speed: 1893 MHz

          Operating System:
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

          DirectX version: DirectX 8.1 or greater

          DirectX display devices:
          Device 0:
            Resolution (width x height x depth): 1024 x 768 x 32
            Device driver nv4_disp.dll version 6.13.10.3638

          GDI display devices:
          Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 460 Go (Toshiba)

      Bug Description:

          The applications that use internal frames crash in all directions,
          especially when using MoveToBack, SetPosition, and more...
          
          java.lang.IllegalArgumentException: illegal component position 2 should be le then 2
              at java.awt.Container.checkAdding(Container.java:409)
              at java.awt.Container.setComponentZOrder(Container.java:658)
              at javax.swing.JLayeredPane.setLayer(JLayeredPane.java:335)
              at javax.swing.JLayeredPane.setPosition(JLayeredPane.java:413)
              at javax.swing.JLayeredPane.moveToBack(JLayeredPane.java:395)
              at InternalFrame150.<init>(InternalFrame150.java:52)
              at InternalFrame150.main(InternalFrame150.java:66)

      and More ... (JLayeredPane.setPosition)
          java.lang.IllegalArgumentException: illegal component position
              at java.awt.Container.checkAdding(Container.java:405)
              at java.awt.Container.setComponentZOrder(Container.java:658)
              at javax.swing.JLayeredPane.setLayer(JLayeredPane.java:335)
              at javax.swing.JLayeredPane.setPosition(JLayeredPane.java:413)

      Steps to Reproduce (be specific):
          - Execute C:\j2sdk1.5.0\bin\javac InternalFrame150MoveToBack.java
          - Execute C:\j2sdk1.5.0\bin\java InternalFrame150MoveToBack



        Attachments

          Activity

            People

            Assignee:
            joutwatesunw Joshua Outwater (Inactive)
            Reporter:
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: