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

Incorrect debugger stepping inside finally block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 8u31
    • 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 ----------

            cjplummer Chris Plummer
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: