Fix regression in test1518_implicitlyInheritRoleFile2()
- need to recognized multi-level copy-path when updating a method that was copied before mappings transformed.
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/copyinheritance/CopyInheritance.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/copyinheritance/CopyInheritance.java
index f7adef7..c17281e 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/copyinheritance/CopyInheritance.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/statemachine/copyinheritance/CopyInheritance.java
@@ -834,7 +834,8 @@
 						// implemented previously abstract method?
 						MethodBinding[] existingMethod = model.getBinding().methods();
 						for (int k = 0; k < existingMethod.length; k++) {
-							if (   existingMethod[k].copyInheritanceSrc == methods[j]
+							if (   (   existingMethod[k].copyInheritanceSrc == methods[j]
+							        || existingMethod[k].copyInheritanceSrc == methods[j].copyInheritanceSrc)
 								&& existingMethod[k].isAbstract() )
 							{
 								// keep methods and update modifiers: