equal
deleted
inserted
replaced
187 // sanity check |
187 // sanity check |
188 assertTrue(nestedA.getClassLoader() != topLevelHostA.getClassLoader()); |
188 assertTrue(nestedA.getClassLoader() != topLevelHostA.getClassLoader()); |
189 |
189 |
190 } |
190 } |
191 |
191 |
|
192 breakpoint(); // debugger runs to here before enabling events |
192 allowRedefine(); // debugger stops us here to attempt redefinitions |
193 allowRedefine(); // debugger stops us here to attempt redefinitions |
193 |
194 |
194 System.out.println("Target executed okay"); |
195 System.out.println("Target executed okay"); |
195 } |
196 } |
196 |
197 |
197 public static void allowRedefine() { } |
198 static void allowRedefine() { } |
|
199 static void breakpoint() { } |
198 } |
200 } |
199 |
201 |
200 public class TestNestmateAttr extends TestScaffold { |
202 public class TestNestmateAttr extends TestScaffold { |
201 |
203 |
202 static final String SRC = System.getProperty("test.src"); |
204 static final String SRC = System.getProperty("test.src"); |
224 new TestNestmateAttr(args).startTests(); |
226 new TestNestmateAttr(args).startTests(); |
225 } |
227 } |
226 |
228 |
227 public void runTests() throws Exception { |
229 public void runTests() throws Exception { |
228 // Get Target into debuggable state |
230 // Get Target into debuggable state |
229 BreakpointEvent bpe = startToMain("Target"); |
231 BreakpointEvent bpe = startTo("Target", "breakpoint", "()V"); |
230 EventRequestManager erm = vm().eventRequestManager(); |
232 EventRequestManager erm = vm().eventRequestManager(); |
231 MethodEntryRequest mee = erm.createMethodEntryRequest(); |
233 MethodEntryRequest mee = erm.createMethodEntryRequest(); |
232 mee.addClassFilter("Target"); |
234 mee.addClassFilter("Target"); |
233 mee.enable(); |
235 mee.enable(); |
234 |
236 |