improve r1170 as to avoid regression re copy-inheritance of static role methods
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/bytecode/BytecodeTransformer.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/bytecode/BytecodeTransformer.java
index 85ae4ea..a20cc88 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/bytecode/BytecodeTransformer.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/bytecode/BytecodeTransformer.java
@@ -354,7 +354,10 @@
 			int expectedLen)
     {
     	conv.updateName(2); // method name
-    	conv.writeName(4, dstMethod.signature(classFile, classFile.referenceBinding)); // method signature
+    	ReferenceBinding declaringClass = classFile.referenceBinding;
+    	if (dstMethod.copyInheritanceSrc != null && dstMethod.isStatic()) // for copied static role methods weaken the synthetic team parameter
+    		declaringClass = dstMethod.copyInheritanceSrc.declaringClass;
+    	conv.writeName(4, dstMethod.signature(classFile, declaringClass)); // method signature
     	int attributesCount = OTByteCodes.getWord(dest, 6);
 
     	int offset = METHOD_PREFIX_LEN;