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

JInternalFrame can't show correctly with the specical option "-esa -ea -Xcheck:jni -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel".

XMLWordPrintable

    • b147
    • x86
    • linux

      Testsuite name:JCK manual
      Test name:api/javax_swing/interactive/JInternalFrameTests.html#JInternalFrame
      Product tested: JDK 8 u40 b11 64bit
      OS/architecture:Oel6.4-uek-x64
       
      Error log file (if present):http://aurora-ds3.us.oracle.com:9502/runs%2F618885.ManualSubmit-1/workDir/api/javax_swing/interactive/JInternalFrameTests_JInternalFrame.jtr

      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression: No
      ([If Regression]) Regression introduced in release/build:

      Test result on the last GAed release for this train:Fail(JDK 8 u31 b10(64bit)/oel6.4-uek-x64)
      [if Fail] Test result on FCS: Fail(JDK1.8.0b132(64bit)/oel6.4-uek-x64)


      Is it a platform specific issue: No(JDK8u40b11(64bit) with new testbase JCK-runtime-8a /Solaris11.2-x64 Fail)
      Is it a new (previously unsupported) OS/browser/mode testing:
      [If new configuration testing] Issue specific to execution mode or OS/browser version:

      Exception/Error from Log:
      Exception in thread "AWT-EventQueue-0" java.lang.AssertionError: component is not JInternalFrame or JInternalFrame.JDesktopIcon
      at com.sun.java.swing.plaf.gtk.Metacity.updateFrameGeometry(Metacity.java:1476)
      at com.sun.java.swing.plaf.gtk.Metacity.paintButtonBackground(Metacity.java:219)
      at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:270)
      at javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:299)
      at javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:254)
      at javax.swing.JComponent.paintComponent(JComponent.java:780)
      at javax.swing.JComponent.paint(JComponent.java:1056)
      at javax.swing.JComponent.paintChildren(JComponent.java:889)
      at javax.swing.JComponent.paint(JComponent.java:1065)
      at javax.swing.JComponent.paintChildren(JComponent.java:889)
      at javax.swing.JComponent.paint(JComponent.java:1065)
      at javax.swing.JComponent.paintChildren(JComponent.java:889)
      at javax.swing.JComponent.paint(JComponent.java:1065)
      at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
      at javax.swing.JComponent.paintToOffscreen(JComponent.java:5219)......


      Steps to reproduce:
      1. Install test bundle jdk8u40b11 from http://jre.us.oracle.com/java/re/jdk/8u40/promoted/all/b11/bundles/linux-x64/jdk-8u40-ea-linux-x64.tar.gz to /root/workspace/jck
      2. Download the JCK-runtime-8_b42.jar from http://jre.us.oracle.com/java/re/jck/8/promoted/fcs/b42/bundles/ to /root/workspace/jck/ and use /root/workspace/jck/jdk1.8.0_40/bin/java -jar JCK-runtime-8_b42.jar to unzip it
      3. /root/workspace/jck/jdk1.8.0_40/bin/java -showversion -esa -ea -Xcheck:jni -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -cp /root/workspace/jck/JCK-runtime-8/classes:/root/workspace/jck/jdk1.8.0_40/lib/tools.jar -Djava.security.policy=/root/workspace/jck/JCK-runtime-8/lib/jck.policy javasoft.sqe.tests.api.javax.swing.interactive.JInternalFrame.JInternalFrameTests -TestCaseID ALL -TestDirURL file:/root/workspace/jck/JCK-runtime-8/tests/api/javax_swing/interactive/JInternalFrameTests.html#JInternalFrame

      Descriptions:
      This test verifies the behavior of JInternalFrame created by the constructor JInternalFrame(String, boolean, boolean).Please click the button shown below to display an internal frame.Please verify that the internal frame has a title of "Internal Frame",that it is resizable and closable, and that it is not maximizable or iconifiable.


      Actual behavior:
      1.JInternalFrame can't show correctly with the specical option "-esa -ea -Xcheck:jni -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel",refer to InternalFrame.jpg.
      2.There is no this issue without the special options,refer to InternalFrame1.jpg.

      These cases have the same issue that components can not show correctly with the special option:
      api/javax_swing/interactive/DnDCompoundTests.html#DnDCompound
      api/javax_swing/interactive/JOptionPaneTests.html#JOptionPane
      api/javax_swing/interactive/JToolTipTests.html#JToolTip

        1. InternalFrame1.jpg
          InternalFrame1.jpg
          240 kB
        2. Issue 7u80.jpg
          Issue 7u80.jpg
          255 kB
        3. Issue 8-GA.jpg
          Issue 8-GA.jpg
          89 kB
        4. Issuewith8u20.jpg
          Issuewith8u20.jpg
          116 kB
        5. JInternalFrame.jpg
          JInternalFrame.jpg
          211 kB
        6. Log_8u20.txt
          3 kB

            ssadetsky Semyon Sadetsky (Inactive)
            michaelw Michael Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: