mirror of
https://github.com/corda/corda.git
synced 2025-06-22 09:08:49 +00:00
fix build regression and add copyright headers
This commit is contained in:
@ -1,3 +1,13 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
public class CallSite {
|
public class CallSite {
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
public class LambdaConversionException extends java.lang.Exception {
|
public class LambdaConversionException extends java.lang.Exception {
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
import static avian.Stream.write1;
|
import static avian.Stream.write1;
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
import avian.Classes;
|
import avian.Classes;
|
||||||
@ -6,12 +16,12 @@ import avian.SystemClassLoader;
|
|||||||
public class MethodHandle {
|
public class MethodHandle {
|
||||||
static final int REF_invokeStatic = 6;
|
static final int REF_invokeStatic = 6;
|
||||||
static final int REF_invokeSpecial = 7;
|
static final int REF_invokeSpecial = 7;
|
||||||
|
|
||||||
final int kind;
|
final int kind;
|
||||||
private final ClassLoader loader;
|
private final ClassLoader loader;
|
||||||
final avian.VMMethod method;
|
final avian.VMMethod method;
|
||||||
private volatile MethodType type;
|
private volatile MethodType type;
|
||||||
|
|
||||||
MethodHandle(int kind, ClassLoader loader, avian.VMMethod method) {
|
MethodHandle(int kind, ClassLoader loader, avian.VMMethod method) {
|
||||||
this.kind = kind;
|
this.kind = kind;
|
||||||
this.loader = loader;
|
this.loader = loader;
|
||||||
@ -44,7 +54,7 @@ public class MethodHandle {
|
|||||||
sb.append(Classes.makeString(method.spec, 0,
|
sb.append(Classes.makeString(method.spec, 0,
|
||||||
method.spec.length - 1));
|
method.spec.length - 1));
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public MethodType type() {
|
public MethodType type() {
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
public class MethodHandles {
|
public class MethodHandles {
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
import static avian.Assembler.*;
|
import static avian.Assembler.*;
|
||||||
|
48
classpath/java/lang/invoke/SerializedLambda.java
Normal file
48
classpath/java/lang/invoke/SerializedLambda.java
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/* Copyright (c) 2008-2016, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.lang.invoke;
|
||||||
|
|
||||||
|
public class SerializedLambda implements java.io.Serializable {
|
||||||
|
public int getImplMethodKind() {
|
||||||
|
// todo
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImplClass() {
|
||||||
|
// todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImplMethodName() {
|
||||||
|
// todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImplMethodSignature() {
|
||||||
|
// todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFunctionalInterfaceClass() {
|
||||||
|
// todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFunctionalInterfaceMethodName() {
|
||||||
|
// todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFunctionalInterfaceMethodSignature() {
|
||||||
|
// todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user