JDK-4301846 : Two breakpoints hit for a single BreakpointRequest for Method.
  • Type: Bug
  • Component: vm-legacy
  • Sub-Component: jvmdi
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-12-24
  • Updated: 2000-01-21
  • Resolved: 2000-01-21
Related Reports
Duplicate :  
Description
 This happens in Hotspot Performance Engine JDK1.3.0-R build in SOLARIS.

 When trying to verify the integrated bug 4289162 this bug occurs.

 This error doesnt occur in Win32 Hotspot.

Break point is set in testMethod of the attached java file.
Break point is hit twice instead of only once.

This is reproducable using the debugger demo with the java file
attached.
Compile with -g option.

Steps to reproduce the bug
---------------------------
jdb Test
stop in Test.testMethod()
run
cont
cont
:
till application ends.

Test.java
---------
public class  Test {

   public static void main(String args[]){
         testMethod();
   }

   public static void testMethod(){

  	int j=0;
  	System.out.println("I'am done");
  	System.out.println("I'am done");
  
   }
}

Comments
EVALUATION I've reproduced this with /re/promoted/jdk/1.3/FCS/R/binary/solaris/bin/jdb This is probably a duplicate of 4294585. jon.masamitsu@Eng 2000-01-21 The fix for 4294585 also fixes this bug. I ran the test with a fixed VM and only hit the breakpoint once. arches% jdb Test Initializing jdb... > stop in Test.testMethod() Deferring breakpoint Test.testMethod(). It will be set after the class is loaded. > run run Test Java HotSpot(TM) Core VM warning: Setting of property "java.compiler" is ignored > VM Started: Set deferred breakpoint Test.testMethod() Breakpoint hit: thread="main", Test.testMethod(), line=9, bci=0 9 int j=0; main[1] cont I'am done > I'am done The application exited
11-06-2004

PUBLIC COMMENTS This is a duplicate of 4294585.
10-06-2004