Bug 5234 - Debugger doesn't stop on breakpoint
Summary: Debugger doesn't stop on breakpoint
Status: VERIFIED DUPLICATE of bug 4576
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-25 06:09 EDT by Jerome Lanneluc CLA
Modified: 2001-10-25 09:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.