Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8AEF0200B87 for ; Mon, 19 Sep 2016 12:16:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 89757160ACC; Mon, 19 Sep 2016 10:16:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C5AE7160ABC for ; Mon, 19 Sep 2016 12:16:39 +0200 (CEST) Received: (qmail 8816 invoked by uid 500); 19 Sep 2016 10:16:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8807 invoked by uid 99); 19 Sep 2016 10:16:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 10:16:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 91551C034D for ; Mon, 19 Sep 2016 10:16:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id X1gt6QBQkv-H for ; Mon, 19 Sep 2016 10:16:37 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 4B7515FBE1 for ; Mon, 19 Sep 2016 10:16:37 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5F9BEE002B for ; Mon, 19 Sep 2016 10:16:36 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 2C91B3A0EDB for ; Mon, 19 Sep 2016 10:16:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1761415 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/TemporaryClassLoader.java Date: Mon, 19 Sep 2016 10:16:35 -0000 To: commits@openjpa.apache.org From: struberg@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160919101636.2C91B3A0EDB@svn01-us-west.apache.org> archived-at: Mon, 19 Sep 2016 10:16:40 -0000 Author: struberg Date: Mon Sep 19 10:16:35 2016 New Revision: 1761415 URL: http://svn.apache.org/viewvc?rev=1761415&view=rev Log: OPENJPA-2666 jdk.internal.* are classes generated by Java9 we need to delegate through for them as well. Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/TemporaryClassLoader.java Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/TemporaryClassLoader.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/TemporaryClassLoader.java?rev=1761415&r1=1761414&r2=1761415&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/TemporaryClassLoader.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/TemporaryClassLoader.java Mon Sep 19 10:16:35 2016 @@ -53,13 +53,15 @@ public class TemporaryClassLoader extend // "sun." is required for JDK 1.4, which has an access check for // sun.reflect.GeneratedSerializationConstructorAccessor1 if (name.startsWith("java.") || name.startsWith("javax.") - || name.startsWith("sun.")) + || name.startsWith("sun.") || name.startsWith("jdk.")) { return Class.forName(name, resolve, getClass().getClassLoader()); + } String resourceName = name.replace('.', '/') + ".class"; InputStream resource = getResourceAsStream(resourceName); - if (resource == null) + if (resource == null) { throw new ClassNotFoundException(name); + } ByteArrayOutputStream bout = new ByteArrayOutputStream(); byte[] b = new byte[1024];