Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 13058 invoked from network); 17 Aug 2010 07:31:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Aug 2010 07:31:00 -0000 Received: (qmail 66596 invoked by uid 500); 17 Aug 2010 07:30:59 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 66496 invoked by uid 500); 17 Aug 2010 07:30:58 -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 66489 invoked by uid 99); 17 Aug 2010 07:30:57 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Aug 2010 07:30:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Aug 2010 07:30:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7H7UHZl027808 for ; Tue, 17 Aug 2010 07:30:18 GMT Message-ID: <21058390.389351282030217986.JavaMail.jira@thor> Date: Tue, 17 Aug 2010 03:30:17 -0400 (EDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-6612) Implement own instance for each ThreadGroup for class IIORegistry In-Reply-To: <17648504.227071281312555994.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess resolved HARMONY-6612. ----------------------------------- Resolution: Fixed Applied patch at r986205. There was a minor clash with tthe import change that needed to be applied manually. Please confirm (by closing this JIRA) that the patch has been applied as expected. > Implement own instance for each ThreadGroup for class IIORegistry > ----------------------------------------------------------------- > > Key: HARMONY-6612 > URL: https://issues.apache.org/jira/browse/HARMONY-6612 > Project: Harmony > Issue Type: Sub-task > Components: Classlib > Reporter: Lang Yang > Assignee: Mark Hindess > Attachments: HARMONY-6612.diff > > > Spec - http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/IIORegistry.html#getDefaultInstance() > The method getDefaultInstance() should return the IIORegistry instance for the current ThreadGroup. > This implementation maintains a synchronized hash map to store instances for each ThreadGroup, use ThreadGroup as the key, IIORegistry instance as the value. When the getDefaultInstance() method is being called, we will looks up in the hashmap see if there is exist record, if there is not then a new instance will be created and pushed to the hashmap. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.