Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4089154

No way to use 'stop in' to break in overloaded methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.1.6, 1.2.0
    • core-svc
    • 1.2beta4
    • sparc
    • solaris_2.6
    • Verified


      Regression: no
      Build found on: JDK1.2P2
      Build last worked: Same behavior iin 1.1.5

      The debugger will set a random breakpoint on overloaded methods
      if the "stop in <classid>.<method> is used.
      In the case of overloaded methods we should provide a message
      to the user to indicate where the breakpoint was set.

      For example:
      If you have the following methods in your class:
      MyRect buildRect(int x1, int y1, int x2, int y2)
      MyRect buildRect(Point topLeft, Point bottomRight)
      MyRect buildRect(Point topLeft, int w, int h)
      and within JDB do:
      stop in MyClass.MyRect

      The debugger will randomly pick one of the overloaded methods and set the breakpoint.

            ghirschsunw Gordon Hirsch (Inactive)
            lblairsunw Liz Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: