From commits-return-54948-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Thu Jun 05 09:08:11 2008 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 94215 invoked from network); 5 Jun 2008 09:08:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 09:08:11 -0000 Received: (qmail 75523 invoked by uid 500); 5 Jun 2008 09:08:13 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 75495 invoked by uid 500); 5 Jun 2008 09:08:13 -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 75486 invoked by uid 99); 5 Jun 2008 09:08:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 02:08:13 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 09:07:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 23AB1234C134 for ; Thu, 5 Jun 2008 02:07:45 -0700 (PDT) Message-ID: <1200213226.1212656865144.JavaMail.jira@brutus> Date: Thu, 5 Jun 2008 02:07:45 -0700 (PDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-5866) [classlib][beans] java.beans.XMLDecoder(4) always use Thread.currentThread().getContextClassLoader() 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][beans] java.beans.XMLDecoder(4) always use Thread.currentThread().getContextClassLoader() ---------------------------------------------------------------------------------------------------- Key: HARMONY-5866 URL: https://issues.apache.org/jira/browse/HARMONY-5866 Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 5.0M6 Reporter: Kevin Zhou Fix For: 5.0M6 I read java.beans.XMLDecoder code and find that XMLDecoder(4) as follows: public XMLDecoder(InputStream inputStream, Object owner, ExceptionListener listener, ClassLoader cl) { this(inputStream, owner, listener); defaultClassLoader = cl; } This constructor will first call XMLDecoder(3) which always use Thread.currentThread().getContextClassLoader() regardless of user's ClassLoader. I think the solution is to set the deafultClassLoader first before use SAXParser to parse xml. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.