NativeDebug.dumpCounters with incorrect scope count

Attila Szegedi attila.szegedi at oracle.com
Thu Sep 10 12:38:51 UTC 2015


Looks like you’re right. I registered this as https://bugs.openjdk.java.net/browse/JDK-8135337 <https://bugs.openjdk.java.net/browse/JDK-8135337>

Thanks,
  Attila.

> On Sep 10, 2015, at 2:27 PM, Ahmed Ashour <asashour at yahoo.com> wrote:
> 
> 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



More information about the nashorn-dev mailing list