You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Okomin (JIRA)" <ji...@apache.org> on 2006/12/14 11:03:21 UTC
[jira] Created: (HARMONY-2681) [classlib][awt]
java.awt.image.IndexColorModel.getValidPixels() returns null on Harmony
[classlib][awt] java.awt.image.IndexColorModel.getValidPixels() returns null on Harmony
----------------------------------------------------------------------------------------
Key: HARMONY-2681
URL: http://issues.apache.org/jira/browse/HARMONY-2681
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Ilya Okomin
Priority: Minor
According to the spacification method must return BigInteger indicating the valid/invalid pixels.
Harmony returns null.
Test case to reproduce:
----------- test.java -------------
import java.awt.image.IndexColorModel;
import junit.framework.TestCase;
import junit.textui.TestRunner;
public class test extends TestCase {
public static void main(String args[]) {
TestRunner.run(test.class);
}
public void testRun() {
int bits = 1;
int array_size = 1;
byte cmap[] = new byte[] { 1, 1, 1 };
int offs = 0;
boolean hasalpha = false;
IndexColorModel s = new IndexColorModel(bits,
array_size,
cmap,
offs,
hasalpha);
assertNotNull(s.getValidPixels());
}
}
-------------------------------
Output RI:
========
.
Time: 0,28
OK (1 test)
Output Harmony:
=============
.F
Time: 0.06
There was 1 failure:
1) testRun(test)junit.framework.AssertionFailedError
at test.testRun(test.java:25)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at test.main(test.java:9)
FAILURES!!!
Tests run: 1, Failures: 1, Errors: 0
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira