Community
Participate
Working Groups
Build 20011018 1. Install JRE for J9 10/15/2001 2. Make it the default JRE 3. Create Java Project Proj 4. Create package p in Proj 5. Create the 2 following CUs in p: E.java: ------- package p; import java.util.Hashtable; public class E { Hashtable table = new Hashtable(5); public Object foo() { int[] result = new int[0]; return result.clone(); } } Test.java: ---------- package p; public class Test { public static void main(String[] args) { bar(); // 1st breakpoint on this line } static void bar() { E e = new E(); // 2nd breakpoint on this line e.foo(); } } 6. Put 2 breakpoints where indicated 7. Run Test under debug Observe: Debugger stops on the 2nd breakpoint. Note also that if you use a JDK1.2.2 VM, it stops on the 1st breakpoint.
*** This bug has been marked as a duplicate of 4576 ***
Using our latest JDI implementation, I hit both breakpoints when using J9 or JDK.