Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 1186 invoked from network); 26 Oct 2006 09:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 09:01:20 -0000 Received: (qmail 85787 invoked by uid 500); 26 Oct 2006 09:01:30 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 85754 invoked by uid 500); 26 Oct 2006 09:01:30 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 85743 invoked by uid 99); 26 Oct 2006 09:01:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 02:01:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 02:01:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B2F0C7142E4 for ; Thu, 26 Oct 2006 02:00:17 -0700 (PDT) Message-ID: <33359587.1161853217730.JavaMail.root@brutus> Date: Thu, 26 Oct 2006 02:00:17 -0700 (PDT) From: "Igor V. Stolyarov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1972) [classlib][awt] issue in determination of BufferedImage type In-Reply-To: <27821135.1161853097720.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1972?page=all ] Igor V. Stolyarov updated HARMONY-1972: --------------------------------------- Attachment: Harmony-1972.patch Fix and test attached > [classlib][awt] issue in determination of BufferedImage type > ------------------------------------------------------------ > > Key: HARMONY-1972 > URL: http://issues.apache.org/jira/browse/HARMONY-1972 > Project: Harmony > Issue Type: Bug > Reporter: Igor V. Stolyarov > Attachments: BufferedImageGetTypeTest.zip, Harmony-1972.patch > > > Issue in determination of BufferedImage type when BufferedImage has IndexColorModel and colorMap has size less than max allowed for appropriate pixel size. > Test:------------------------------------------------------------------------------------------- > import java.awt.image.*; > public class Test { > public static void main(String[] args) { > int cmap[] = new int[256]; > IndexColorModel icm = new IndexColorModel(8, 10, cmap, 0, false, -1, DataBuffer.TYPE_BYTE); > WritableRaster wr = icm.createCompatibleWritableRaster(10,10); > BufferedImage bi = new BufferedImage(icm, wr, icm.isAlphaPremultiplied(), null); > if(bi.getType() == BufferedImage.TYPE_BYTE_INDEXED) System.out.println("Test passes"); > else System.out.println("Test fails"); > } > } > Output:----------------------------------------------------------------------- > JRockit: > java version "1.4.2_04" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) > BEA WebLogic JRockit(TM) 1.4.2_04 JVM (build ari-31788-20040616-1132-win-ia32, > Native Threads, GC strategy: parallel) > Test passes > --------------------------------------------------------------------------------- > Harmony: > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r467568, (Oct 25 2006), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > Test fails -- 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