Fix FELIX-4725 using the proposed approach.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1644343 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/InnerClassAdapter.java b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/InnerClassAdapter.java
index be26162..ecdc9ef 100644
--- a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/InnerClassAdapter.java
+++ b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/InnerClassAdapter.java
@@ -127,9 +127,9 @@
}
// The new name is the method name prefixed by the PREFIX.
- MethodVisitor mv = super.visitMethod(access, ClassManipulator.PREFIX + name, desc, signature,
+ MethodVisitor mv = super.visitMethod(ACC_PRIVATE, ClassManipulator.PREFIX + name, desc, signature,
exceptions);
- return new MethodCodeAdapter(mv, m_outer, access, ClassManipulator.PREFIX + name, desc, m_fields);
+ return new MethodCodeAdapter(mv, m_outer, ACC_PRIVATE, ClassManipulator.PREFIX + name, desc, m_fields);
} else {
return super.visitMethod(access, name, desc, signature, exceptions);
}