commit | 3c387011b430bf952ff58bc833b10fdc9d17aafc | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Thu Feb 09 10:36:53 2012 +0000 |
committer | Clement Escoffier <clement@apache.org> | Thu Feb 09 10:36:53 2012 +0000 |
tree | e8c5fe84ad6f30f66d4cd8a3633620d493eb8623 | |
parent | 2ef76cfc988bb0bcf7aa36bf3d4783ed33269aca [diff] |
Until we fixed the frame issue on Java 7, avoid the frame computation (FELIX-3297). git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1242265 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java index 395a5d9..3739b6a 100644 --- a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java +++ b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/Manipulator.java
@@ -94,10 +94,10 @@ // Instrument all fields InputStream is2 = new ByteArrayInputStream(origin); ClassReader cr0 = new ClassReader(is2); - ClassWriter cw0 = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES); + ClassWriter cw0 = new ClassWriter(ClassWriter.COMPUTE_MAXS); //CheckClassAdapter ch = new CheckClassAdapter(cw0); MethodCreator preprocess = new MethodCreator(cw0, m_fields, m_methods); - cr0.accept(preprocess, ClassReader.SKIP_FRAMES); + cr0.accept(preprocess, 0); is2.close(); finalWriter = cw0; }