Print this page


Split Close
Expand all
Collapse all
          --- old/test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.java
          +++ new/test/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.java
↓ open down ↓ 92 lines elided ↑ open up ↑
  93   93          // With this call here, we will see the target class once:
  94   94          // when it gets retransformed.
  95   95          //addTransformerToManager(fInst, new MyObserver(), true);
  96   96  
  97   97          assertTrue(fTargetClassName + " was not seen by transform()",
  98   98              fTargetClassSeen);
  99   99  
 100  100          // The HotSpot VM hands us class file bytes at initial class
 101  101          // load time that match the .class file contents. However,
 102  102          // according to the following spec that is not required:
 103      -        // http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/Instrumentation.html#retransformClasses(java.lang.Class...)
      103 +        // https://docs.oracle.com/javase/7/docs/api/java/lang/instrument/Instrumentation.html#retransformClasses(java.lang.Class...)
 104  104          // This test exists to catch any unintentional change in
 105  105          // behavior by the HotSpot VM. If this behavior is intentionally
 106  106          // changed in the future, then this test will need to be
 107  107          // updated.
 108  108          assertTrue(fTargetClassName + " did not match .class file",
 109  109              fTargetClassMatches);
 110  110  
 111  111          fTargetClassSeen = false;
 112  112          fTargetClassMatches = false;
 113  113  
↓ open down ↓ 79 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX