jdk/test/java/lang/instrument/ATransformerManagementTestCase.java
changeset 13576 850377563282
parent 5506 202f599c92aa
child 36511 9d0388c6b336
--- a/jdk/test/java/lang/instrument/ATransformerManagementTestCase.java	Fri Aug 17 14:32:50 2012 -0400
+++ b/jdk/test/java/lang/instrument/ATransformerManagementTestCase.java	Fri Aug 17 12:51:23 2012 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -99,12 +99,28 @@
         Instrumentation         manager,
         ClassFileTransformer    transformer)
     {
+        addTransformerToManager(manager, transformer, false);
+    }
+
+    /**
+     * Method addTransformerToManager.
+     * @param manager
+     * @param transformer
+     * @param canRetransform
+     */
+    protected void
+    addTransformerToManager(
+        Instrumentation         manager,
+        ClassFileTransformer    transformer,
+        boolean                 canRetransform)
+    {
         if (transformer != null)
         {
             fTransformers.add(transformer);
         }
-        manager.addTransformer(transformer);
-        verbosePrint("Added transformer " + transformer);
+        manager.addTransformer(transformer, canRetransform);
+        verbosePrint("Added transformer " + transformer
+            + " with canRetransform=" + canRetransform);
     }
 
     /**