OPENJPA-600. Merge from ../branches/1.1.x. svn merge -c 656006 ../branches/1.1.x

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-06-11 23:58:16 +00:00
parent 629977fb1c
commit 5ee728e332
1 changed files with 12 additions and 0 deletions

View File

@ -116,6 +116,18 @@ public class PCClassFileTransformer
return null;
_transforming = true;
return transform0(className, redef, bytes);
}
/**
* We have to split the transform method into two methods to avoid
* ClassCircularityError when executing method using pure-JIT JVMs
* such as JRockit.
*/
private byte[] transform0(String className, Class redef, byte[] bytes)
throws IllegalClassFormatException {
try {
Boolean enhance = needsEnhance(className, redef, bytes);
if (enhance != null && _log.isTraceEnabled())