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

NativeDebug.dumpCounters with incorrect scope count

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b82
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        From http://mail.openjdk.java.net/pipermail/nashorn-dev/2015-September/005197.html:

        -----
        Hi all,

        In NativeDebug.dumpCounters(), there is:


        out.println("Scope count " + Scope.getCount());

        However, Scope doesn't have its own .getCount(), but calls the super (ScriptObject) one.

        I think Scope.getScopeCount() should be used instead.

        Thanks,
        Ahmed
        -----

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  attila Attila Szegedi
                  Reporter:
                  attila Attila Szegedi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: