mirror of
https://github.com/corda/corda.git
synced 2025-06-14 13:18:18 +00:00
add support for openjdk=$JDK8_HOME
All tests pass for the process=compile build. Next step: process=interpret.
This commit is contained in:
@ -1,18 +1,35 @@
|
||||
package java.lang.invoke;
|
||||
|
||||
import avian.Classes;
|
||||
|
||||
public class MethodHandle {
|
||||
static final int REF_invokeStatic = 6;
|
||||
static final int REF_invokeSpecial = 7;
|
||||
|
||||
final int kind;
|
||||
private final ClassLoader loader;
|
||||
final avian.VMMethod method;
|
||||
private volatile MethodType type;
|
||||
|
||||
MethodHandle(ClassLoader loader, avian.VMMethod method) {
|
||||
MethodHandle(int kind, ClassLoader loader, avian.VMMethod method) {
|
||||
this.kind = kind;
|
||||
this.loader = loader;
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
|
||||
public String toString() {
|
||||
return new java.lang.reflect.Method(method).toString();
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (method.class_ != null) {
|
||||
sb.append(Classes.makeString(method.class_.name, 0,
|
||||
method.class_.name.length - 1));
|
||||
sb.append(".");
|
||||
}
|
||||
sb.append(Classes.makeString(method.name, 0,
|
||||
method.name.length - 1));
|
||||
sb.append(Classes.makeString(method.spec, 0,
|
||||
method.spec.length - 1));
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public MethodType type() {
|
||||
if (type == null) {
|
||||
|
Reference in New Issue
Block a user