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

ICC_Profile.getData(ICC_Profile.icSigAToB0Tag) returns null

XMLWordPrintable

    • 2d
    • x86
    • linux

      JDK: openJDK6 b03 (pass on b02)
      JCK: JCK6a + alt01
      Platform: Ubuntu Linux

      The following tests fail because method getData() returns null

      ------------------------------------------------------------------------------
      api/java_awt/Color/ICC_ProfileGray/index.html#SetDataTesttestCase1
      Extract:
              ICC_ProfileGray profile = (ICC_ProfileGray)ICC_ProfileGray.getInstance(ColorSpace.CS_GRAY);
              byte[] headData = new byte[10];
              for(int i = 0;i < headData.length;i++)
                  headData[i] = (byte)i;
              profile.setData(ICC_ProfileGray.icSigAToB0Tag, headData);
              byte[] data = profile.getData(ICC_ProfileGray.icSigAToB0Tag);
      ------------------------------------------------------------------------------
      api/java_awt/Color/ICC_ProfileGray/index.html#GetTesttestCase2
      Extract:
              ICC_Profile profile = ICC_ProfileGray.getInstance(ColorSpace.CS_GRAY);
              byte[] headData = new byte[10];
              for(int i = 0;i < headData.length;i++)
                  headData[i] = (byte)i;
              profile.setData(ICC_ProfileGray.icSigAToB0Tag, headData);
              byte[] data = profile.getData(ICC_ProfileGray.icSigAToB0Tag);
      ------------------------------------------------------------------------------
      api/java_awt/Color/ICC_Profile/index.html#GetTesttestCase2
      Extract:
              ICC_Profile profile = ICC_Profile.getInstance(ColorSpace.CS_sRGB);
              byte[] headData = new byte[10];
              for(int i = 0;i < headData.length;i++)
                  headData[i] = (byte)i;
              //test with the 'head' tag
              profile.setData(ICC_Profile.icSigAToB0Tag, headData);
              byte[] data = profile.getData(ICC_Profile.icSigAToB0Tag);

            darcy Joe Darcy
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: