tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r684191 - in /openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb: DependenceValidationTest.java core/cmp/jpa/JpaTest.java
Date Sat, 09 Aug 2008 08:04:25 GMT
Author: dblevins
Date: Sat Aug  9 01:04:25 2008
New Revision: 684191

URL: http://svn.apache.org/viewvc?rev=684191&view=rev
Log:
Updated to asm 3.1 api

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/DependenceValidationTest.java
    openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/JpaTest.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/DependenceValidationTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/DependenceValidationTest.java?rev=684191&r1=684190&r2=684191&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/DependenceValidationTest.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/DependenceValidationTest.java
Sat Aug  9 01:04:25 2008
@@ -21,6 +21,7 @@
 import junit.framework.TestCase;
 import junit.framework.TestResult;
 import org.apache.openejb.asm.ClassReader;
+import org.apache.openejb.asm.ClassWriter;
 
 import java.io.File;
 import java.io.FileInputStream;
@@ -110,7 +111,7 @@
             FileInputStream in = new FileInputStream(file);
             try {
                 ClassReader classReader = new ClassReader(in);
-                classReader.accept(dependencyVisitor, true);
+                classReader.accept(dependencyVisitor, ClassWriter.COMPUTE_MAXS);
             } finally {
                 in.close();
             }

Modified: openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/JpaTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/JpaTest.java?rev=684191&r1=684190&r2=684191&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/JpaTest.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/JpaTest.java
Sat Aug  9 01:04:25 2008
@@ -339,12 +339,12 @@
     }
 
     public static byte[] addNewField(byte[] origBytes) {
-        ClassWriter classWriter = new ClassWriter(true);
+        ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS);
 
         FieldAdderClassVisitor visitor = new FieldAdderClassVisitor(classWriter);
 
         ClassReader classReader = new ClassReader(origBytes);
-        classReader.accept(visitor, false);
+        classReader.accept(visitor, 0);
 
         byte[] newBytes = classWriter.toByteArray();
         return newBytes;



Mime
View raw message