From d5e876372dc1974dcf597820f811139d1f294bb6 Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Tue, 13 Jul 2010 15:10:41 +0000 Subject: [PATCH] OPENJPA-1676: Handle null class name in PCClassFileTransformer. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@963752 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/enhance/PCClassFileTransformer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java index b564a0662..74ac688cb 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java @@ -109,6 +109,10 @@ public class PCClassFileTransformer if (loader == _tmpLoader) return null; + // JDK bug -- OPENJPA-1676 + if (className == null) { + return null; + } // prevent re-entrant calls, which can occur if the enhanceing // loader is used to also load OpenJPA libraries; this is to prevent // recursive enhancement attempts for internal openjpa libraries