src/jdk/nashorn/internal/runtime/linker/BoundDynamicMethod.java
Print this page
@@ -23,10 +23,11 @@
* 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,6 +47,11 @@
}
Object getBoundThis() {
return boundThis;
}
+
+ @Override
+ public String toString() {
+ return dynamicMethod.toString() + " on " + Objects.toString(boundThis);
+ }
}