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

TEST_BUG: java/awt/Graphics2D/DrawInvalidByteIndices.java

    XMLWordPrintable

Details

    • 2d
    • mantis
    • x86
    • linux
    • Verified

    Description



      Name: aaR10208 Date: 10/30/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b04
      Testbase : RegTest-test
      Platform[s] : RedHat Linux 8.0 (GNOME)
      switch/Mode : -client -Xmixed -Xfuture
      Falling test[s]:
              java/awt/Graphics2D/DrawInvalidByteIndices.java

      Here is a part of the test's source (file: java/awt/Graphics2D/DrawInvalidByteIndices.java):
      ---
          41 ! IndexColorModel tICM = new IndexColorModel(8, 3, r, g, b, 3);
          42 System.out.println("Transparent ICM Transparency == "+
          43 names[tICM.getTransparency()]);
          44 if (tICM.getTransparency() != Transparency.BITMASK) {
          45 throw new InternalError("Did not get expected Transparency!");
          46 }
      ---

      J2SE API specification claims that transparency value is Transparency.BITMASK when a valid
      transparent pixel index is specified.
      The test specifies the transparent pixel as 3 and as long as size of component array is 3,
      the transparency pixel index is invalid, and the test fails.


      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/regtest/test/java/awt/Graphics2D/DrawInvalidByteIndices.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/linux/redhat8.0_gnome_linux-11/java/awt/Graphics2D/DrawInvalidByteIndices.jtr

      How to reproduce:
      =================
      Run the following script on RH Linux (you may need to change its variables)
       
      --- script start ---
      #!/bin/bash
      TESTJAVA="/net/jdk/export/disk8/local.java/jdk1.4.2/linux"
      export TESTJAVA
      TEST_BASE="/net/jdk/export/disk8/local.java/jdk1.4.2/ws/j2se/test"
      JCT_PATH="/net/linux-15/export/home/java/jct"
      JT="$JCT_PATH/lib/javatest.jar"
      JTREG="$JCT_PATH/lib/jtreg.jar"
      TEST_BASE_ROOT="$TEST_BASE/test"
      TEST_PACKAGE=java/awt/Graphics2D
      TEST_SHORT_NAME=DrawInvalidByteIndices
      TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME
      export TESTSRC="$TEST_BASE_ROOT/$TEST_PACKAGE"
      export CLASSPATH=".:$TESTJAVA:$TESTJAVA/lib/tools.jar:$TEST_BASE:$TESTSRC:$JT:$JTREG"
      $TESTJAVA/bin/javac -g -classpath "$CLASSPATH" -d . $TEST_BASE_ROOT/$TEST_NAME.java
      $TESTJAVA/bin/java -showversion -cp "$CLASSPATH" -Dtest.src=$TEST_BASE_ROOT/$TEST_PACKAGE $TEST_SHORT_NAME
      --- script end ---

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

      Opaque ICM Transparency == OPAQUE
      Transparent ICM Transparency == OPAQUE
      Exception in thread "main" java.lang.InternalError: Did not get expected Transparency!
              at DrawInvalidByteIndices.main(DrawInvalidByteIndices.java:45)

      Specific machine info:
      ======================
      Hostname: linux-11
      OS: RedHat Linux 8.0 (GNOME)

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

      Attachments

        Activity

          People

            jehung Jeannette Hung
            sundrsunw Sundr Sundr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: