Incorrect debugger stepping inside finally block

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • None
    • Affects Version/s: 8u31
    • Component/s: core-svc
    • x86
    • generic

      FULL PRODUCT VERSION :
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.3.9600]

      A DESCRIPTION OF THE PROBLEM :
      See the attached code, on step over (into) in finally block debugger stops on the incorrect line.
      See also https://youtrack.jetbrains.com/issue/IDEA-136294


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
       public void test() throws Exception {
              Object o = null;
              try {
                  if (1 == 1) {
                      throw new RuntimeException("dsad");
                  }
              } finally {
                  if (o != null) { // step over here (o actually equals null)
                      System.out.println("gfgd"); // and stop here
                  }

              }
              System.out.println("gfgd");
          }
      ---------- END SOURCE ----------

            Assignee:
            Chris Plummer
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: