commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r896230 - in /commons/sandbox/javaflow/trunk: pom.xml src/test/java/org/apache/commons/javaflow/helper/ClassTransformerClassLoader.java
Date Tue, 05 Jan 2010 21:32:14 GMT
Author: tcurdt
Date: Tue Jan  5 21:32:14 2010
New Revision: 896230

URL: http://svn.apache.org/viewvc?rev=896230&view=rev
Log:
applied patch from https://issues.apache.org/jira/browse/SANDBOX-260 (from Valery Silaev)
enabled tests


Modified:
    commons/sandbox/javaflow/trunk/pom.xml
    commons/sandbox/javaflow/trunk/src/test/java/org/apache/commons/javaflow/helper/ClassTransformerClassLoader.java

Modified: commons/sandbox/javaflow/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/pom.xml?rev=896230&r1=896229&r2=896230&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/pom.xml (original)
+++ commons/sandbox/javaflow/trunk/pom.xml Tue Jan  5 21:32:14 2010
@@ -139,7 +139,7 @@
             <exclude>**/Abstract*</exclude>
           </excludes>
           <testFailureIgnore>true</testFailureIgnore>
-          <skip>true</skip>
+          <!-- <skip>true</skip> -->
         </configuration>
       </plugin>
 

Modified: commons/sandbox/javaflow/trunk/src/test/java/org/apache/commons/javaflow/helper/ClassTransformerClassLoader.java
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/src/test/java/org/apache/commons/javaflow/helper/ClassTransformerClassLoader.java?rev=896230&r1=896229&r2=896230&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/src/test/java/org/apache/commons/javaflow/helper/ClassTransformerClassLoader.java
(original)
+++ commons/sandbox/javaflow/trunk/src/test/java/org/apache/commons/javaflow/helper/ClassTransformerClassLoader.java
Tue Jan  5 21:32:14 2010
@@ -1,7 +1,9 @@
 package org.apache.commons.javaflow.helper;
 
+import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.PrintWriter;
 import java.util.HashSet;
 import java.util.Set;
 
@@ -9,6 +11,7 @@
 import org.apache.commons.javaflow.bytecode.BytecodeClassLoader;
 import org.apache.commons.javaflow.bytecode.transformation.ResourceTransformer;
 import org.objectweb.asm.ClassReader;
+import org.objectweb.asm.util.ASMifierClassVisitor;
 
 public class ClassTransformerClassLoader extends BytecodeClassLoader {
 
@@ -37,18 +40,17 @@
 
 //    	CheckClassAdapter.verify(new ClassReader(newClass), true);
 
-//        
-//    	new ClassReader(oldClass).accept(
-//    			new ASMifierClassVisitor(
-//    					new PrintWriter(
-//    							new FileOutputStream(
-//    									transformer.getClass().getSimpleName() + pName + ".old"))), false);
-//
-//    	new ClassReader(newClass).accept(
-//    			new ASMifierClassVisitor(
-//    					new PrintWriter(
-//    							new FileOutputStream(
-//    									transformer.getClass().getSimpleName() + pName + ".new"))), false);
+    	new ClassReader(oldClass).accept(
+    			new ASMifierClassVisitor(
+    					new PrintWriter(
+    							new FileOutputStream(
+    									transformer.getClass().getSimpleName() + pName + ".old"))), 0);
+
+    	new ClassReader(newClass).accept(
+    			new ASMifierClassVisitor(
+    					new PrintWriter(
+    							new FileOutputStream(
+    									transformer.getClass().getSimpleName() + pName + ".new"))), 0);
     	
         return newClass;
     }



Mime
View raw message