src/jdk/nashorn/internal/runtime/linker/BoundDynamicMethod.java

Print this page

        

*** 23,32 **** --- 23,33 ---- * questions. */ package jdk.nashorn.internal.runtime.linker; + import java.util.Objects; import jdk.internal.dynalink.beans.BeansLinker; /** * Represents a Dynalink dynamic method bound to a receiver. Note that objects of this class are just the tuples of * a method and a bound this, without any behavior. All the behavior is defined in the {@code BoundDynamicMethodLinker}.
*** 46,51 **** --- 47,57 ---- } Object getBoundThis() { return boundThis; } + + @Override + public String toString() { + return dynamicMethod.toString() + " on " + Objects.toString(boundThis); + } }