Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 54718 invoked from network); 14 Dec 2006 10:03:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 10:03:42 -0000 Received: (qmail 18996 invoked by uid 500); 14 Dec 2006 10:03:49 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 18898 invoked by uid 500); 14 Dec 2006 10:03:49 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 18888 invoked by uid 99); 14 Dec 2006 10:03:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 02:03:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 02:03:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 137D77140D2 for ; Thu, 14 Dec 2006 02:03:21 -0800 (PST) Message-ID: <5975158.1166090601076.JavaMail.jira@brutus> Date: Thu, 14 Dec 2006 02:03:21 -0800 (PST) From: "Ilya Okomin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-2681) [classlib][awt] java.awt.image.IndexColorModel.getValidPixels() returns null on Harmony MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [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