Bug 406518 - migrate OT/Equinox to the standard OSGi WeavingHook
- debug output for errors in org.eclipse.objectteams.otdt.test.builder
diff --git a/plugins/org.eclipse.objectteams.runtime/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java b/plugins/org.eclipse.objectteams.runtime/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java
index 67e19ce..7d4d736 100644
--- a/plugins/org.eclipse.objectteams.runtime/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java
+++ b/plugins/org.eclipse.objectteams.runtime/src/org/eclipse/objectteams/otre/ObjectTeamsTransformation.java
@@ -34,7 +34,6 @@
 import org.eclipse.objectteams.otre.util.AttributeReadingGuard;
 import org.eclipse.objectteams.otre.util.CallinBindingManager;
 import org.eclipse.objectteams.otre.util.RoleBaseBinding;
-
 import org.apache.bcel.Constants;
 import org.apache.bcel.classfile.Attribute;
 import org.apache.bcel.classfile.Constant;
@@ -572,14 +571,17 @@
     	List<String> classesToLoad;
     	synchronized (guard) {
     		if (!guard.iAmTheFirst(class_name)) {
-    			if (isScanOnly) {
+    			if (isScanOnly && class_name.equals("org.eclipse.objectteams.otdt.test.builder.OTTestingEnvironment")) {
     				System.err.println("I'm not the first "+this);
     				System.err.println(" guard ="+guard);
     				System.err.println(" loader="+this.loader);
     				System.err.println(" class ="+class_name);
+    				new Exception("I'm not the first "+this).printStackTrace();
     			}
 				return;
 			}
+    		if (class_name.equals("org.eclipse.objectteams.otdt.test.builder.OTTestingEnvironment"))
+    			new Exception("I AM the first "+this).printStackTrace();
 			if (AttributeReadingGuard.isFirstLoadedClass())
 				addTeamInitializations = true;
 			// scan for attributes here, because this transformer is applied first: