Bug 397182 - Prepare OTDT for new (dynamic) weaver
- fix context dependent regression in test4141_dCB3:
  was passing a wrong ID
diff --git a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/AbstractBoundClass.java b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/AbstractBoundClass.java
index 69b20bb..e79817c 100644
--- a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/AbstractBoundClass.java
+++ b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/AbstractBoundClass.java
@@ -913,7 +913,7 @@
 				createSuperCallInCallOrig(boundMethodId);
 			else
 				// can't weave into the declaring class, add an override here:
-				createCallAllBindingsCallInOrgMethod(method, joinpointId, true/*needToAddMethod*/);
+				createCallAllBindingsCallInOrgMethod(method, boundMethodId, true/*needToAddMethod*/);
 		} else {
 			createDispatchCodeInCallAllBindings(joinpointId, boundMethodId);
 		}