Bug 5234

Summary: Debugger doesn't stop on breakpoint
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2001-10-25 06:09:34 EDT
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.
Comment 1 Darin Wright CLA 2001-10-25 09:35:15 EDT

*** This bug has been marked as a duplicate of 4576 ***
Comment 2 Darin Wright CLA 2001-10-25 09:36:25 EDT
Using our latest JDI implementation, I hit both breakpoints when using J9 or 
JDK.