Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 20038 invoked from network); 16 May 2007 19:45:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2007 19:45:38 -0000 Received: (qmail 26190 invoked by uid 500); 16 May 2007 19:45:43 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 26105 invoked by uid 99); 16 May 2007 19:45:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 12:45:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 16 May 2007 12:45:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5295571406F for ; Wed, 16 May 2007 12:45:16 -0700 (PDT) Message-ID: <20366253.1179344716335.JavaMail.jira@brutus> Date: Wed, 16 May 2007 12:45:16 -0700 (PDT) From: "David Ezzio (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-488) Use of JDK 1.6 with TCK: ClassLoader.loadClass cannot load arrays in JDK 1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Use of JDK 1.6 with TCK: ClassLoader.loadClass cannot load arrays in JDK 1.6 ---------------------------------------------------------------------------- Key: JDO-488 URL: https://issues.apache.org/jira/browse/JDO-488 Project: JDO Issue Type: Bug Components: tck2 Affects Versions: JDO 2 final Environment: Use of JDK 1.6 when running TCK. Reporter: David Ezzio In JDK 1.5 and prior versions of Java 2, the name returned by Class.getName() could be used with ClassLoader.loadClass to load array types. This behavior was considered a bug that has been fixed in JDK 1.6. As a result, calls using encoded array names such as "L[java.lang.Object;" now fail with a ClassNotFoundException. See Sun's Java CR 6446627 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6446627) et alia. The recommended practice (and the only available option in JDK 1.6) is to use Class.forName(name, verify, classloader) to load a class with a specific class loader within the application. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.