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 <asash...@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