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

api/javax_swing/JViewport/index.html#setgetXXX JCK test fails starting from JDK 1.5.0_17b08(j4b)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b08
    • Introduced In Version:
    • Resolved In Build:
      b09
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        api/javax_swing/JViewport/index.html#setgetXXX : JViewport setgetXXX tests
        JCK : JCK runtime 1.5a b11
        J2SE : FAIL - since jdk 5u17 build 08
        Platform[s] : FAIL - Any (Noticed in Linux and Solaris)
        Java options : FAIL - Any

        Steps to reproduce:
        1. Install jdk (for example to /export/jdk/jdk1.5.0_17)
        2. Install JCK (for example to /export/JCK/JCK-runtime-15a, installed one could be found at /java/re/jck/1.5a/latest/binaries/JCK-runtime-15a/)
        3. Modify the simple script below accordingly and run it
        #!/bin/bash

        export JAVA=/export/jdk/jdk1.5.0_17/bin/java
        export CLASSPATH="/export/JCK/JCK-runtime-15a/classes"

        OPTS=""
        TEST="javasoft.sqe.tests.api.javax.swing.JViewport.setgetXXXTests"

        $JAVA $OPTS -version
        $JAVA $OPTS $TEST

        Output will be
        JViewport0003: Passed. OKAY
        JViewport0004: Passed. OKAY
        JViewport0005: Passed. OKAY
        JViewport0006: Passed. OKAY
        JViewport0007: Passed. OKAY
        JViewport0008: Passed. OKAY
        JViewport0009: Passed. OKAY
        JViewport0010: Passed. OKAY
        JViewport0011: Passed. OKAY
        JViewport0012: Passed. OKAY
        JViewport0013: Passed. OKAY
        JViewport0014: Passed. OKAY
        JViewport0015: Failed. protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) Test Failed 0
        JViewport0018: Passed. OKAY
        JViewport0019: Passed. OKAY
        JViewport0020: Passed. OKAY
        dy=-10
        blitFrom=java.awt.Point[x=0,y=0]
        blitTo=java.awt.Point[x=0,y=0]
        blitSize=java.awt.Dimension[width=0,height=0]
        blitPaint=java.awt.Rectangle[x=0,y=0,width=0,height=0]
        STATUS:Failed.test cases: 16; passed: 15; failed: 1; first test case failure: JViewport0015

        Source of teh test could be found at /java/re/jck/1.5a/latest/binaries/JCK-runtime-15a/tests/api/javax_swing/JViewport/setgetXXXTests.java

        Please see a reduced test source in comment.
        JViewport0015 test case consist of 4 smaller testcases. Commenting out any 3 of them and running test we can see that any of this smaller testcases is failing.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                vkarnauk Vladislav Karnaukhov
                Reporter:
                ncunningorcl Niall Cunningham (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: