cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r571800 - in /cayenne/main/trunk: framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/enhancer/Enhancer.java pom.xml
Date Sat, 01 Sep 2007 13:44:04 GMT
Author: aadamchik
Date: Sat Sep  1 06:44:03 2007
New Revision: 571800

URL: http://svn.apache.org/viewvc?rev=571800&view=rev
Log:
upgrading ASM to 3.0 ... no particular reason for this chance except that I'll be doing some
enhancer work soon and wanted to keep things up to date... besides 3.0 has some good documentation

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/enhancer/Enhancer.java
    cayenne/main/trunk/pom.xml

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/enhancer/Enhancer.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/enhancer/Enhancer.java?rev=571800&r1=571799&r2=571800&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/enhancer/Enhancer.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/enhancer/Enhancer.java
Sat Sep  1 06:44:03 2007
@@ -53,7 +53,7 @@
             byte[] classfileBuffer) throws IllegalClassFormatException {
 
         ClassReader reader = new ClassReader(classfileBuffer);
-        ClassWriter writer = new ClassWriter(reader, true);
+        ClassWriter writer = new ClassWriter(reader, ClassWriter.COMPUTE_FRAMES);
 
         ClassVisitor visitor = visitorFactory.createVisitor(className, writer);
         if (visitor == null) {
@@ -62,7 +62,7 @@
         }
 
         logger.info("enhancing class " + className);
-        reader.accept(visitor, true);
+        reader.accept(visitor, 0);
         return writer.toByteArray();
     }
 }

Modified: cayenne/main/trunk/pom.xml
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/pom.xml?rev=571800&r1=571799&r2=571800&view=diff
==============================================================================
--- cayenne/main/trunk/pom.xml (original)
+++ cayenne/main/trunk/pom.xml Sat Sep  1 06:44:03 2007
@@ -226,13 +226,13 @@
 			<dependency>
 				<groupId>asm</groupId>
 				<artifactId>asm</artifactId>
-				<version>2.2.3</version>
+				<version>3.0</version>
 			</dependency>
 
 			<dependency>
 				<groupId>asm</groupId>
 				<artifactId>asm-commons</artifactId>
-				<version>2.2.3</version>
+				<version>3.0</version>
 			</dependency>
 
 			<dependency>



Mime
View raw message