FELIX-3573
IPojo bytecode manipulation generates a duplicate local variable
Just applied the proposed modification.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1354637 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/ConstructorCodeAdapter.java b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/ConstructorCodeAdapter.java
index 4cc76ee..fa48552 100644
--- a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/ConstructorCodeAdapter.java
+++ b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/ConstructorCodeAdapter.java
@@ -262,8 +262,9 @@
if (index == 0) {
mv.visitLocalVariable(name, desc, signature, start, end, index);
mv.visitLocalVariable("_manager", "Lorg/apache/felix/ipojo/InstanceManager;", null, start, end, 1);
+ } else {
+ mv.visitLocalVariable(name, desc, signature, start, end, index + 1);
}
- mv.visitLocalVariable(name, desc, signature, start, end, index + 1);
}
/**