Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 3401 invoked from network); 12 Jun 2009 14:08:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jun 2009 14:08:19 -0000 Received: (qmail 23346 invoked by uid 500); 12 Jun 2009 14:08:30 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 23305 invoked by uid 500); 12 Jun 2009 14:08:30 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 23295 invoked by uid 99); 12 Jun 2009 14:08:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 14:08:30 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 14:08:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B010029A0011 for ; Fri, 12 Jun 2009 07:08:07 -0700 (PDT) Message-ID: <1282767773.1244815687719.JavaMail.jira@brutus> Date: Fri, 12 Jun 2009 07:08:07 -0700 (PDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Created: (FELIX-1233) Bundle class loader should delegate using Class.forName(String, boolean, ClassLoader) to support array types 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 Bundle class loader should delegate using Class.forName(String, boolean, ClassLoader) to support array types ------------------------------------------------------------------------------------------------------------ Key: FELIX-1233 URL: https://issues.apache.org/jira/browse/FELIX-1233 Project: Felix Issue Type: Bug Components: Framework Affects Versions: felix-1.8.0 Reporter: Richard S. Hall Assignee: Richard S. Hall Fix For: felix-1.8.1 A call to Bundle.loadClass() delegates to ModuleClassLoader.loadClass(). This is problematic, for example, if you create a wrapper class loader for deserialization since it will ask for array types, since loadClass() doesn't know how to deal with them. On the other hand, Class.forName(String, boolean, ClassLoader) will deal with them automatically. There is an issue around Class.forName() where it caches results in a weird way, but this shouldn't impact this situation, since bundles class spaces are consistent show caching should be fine. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.