|
|
e797f0b |
diff -up ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/CallSite.java.sav ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/CallSite.java
|
|
|
e797f0b |
--- ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/CallSite.java.sav 2011-06-27 13:28:34.000000000 -0400
|
|
|
e797f0b |
+++ ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/CallSite.java 2011-07-06 13:14:16.239382320 -0400
|
|
|
e797f0b |
@@ -329,7 +329,7 @@ public class CallSite {
|
|
|
e797f0b |
|
|
|
e797f0b |
private static Object maybeReBox(Object x) {
|
|
|
e797f0b |
if (x instanceof Integer) {
|
|
|
e797f0b |
- int xi = (int) x;
|
|
|
e797f0b |
+ int xi = (Integer) x;
|
|
|
e797f0b |
if (xi == (byte) xi)
|
|
|
e797f0b |
x = xi; // must rebox; see JLS 5.1.7
|
|
|
e797f0b |
}
|
|
|
e797f0b |
diff -up ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/FromGeneric.java.sav ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/FromGeneric.java
|
|
|
e797f0b |
--- ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/FromGeneric.java.sav 2011-06-27 13:28:35.000000000 -0400
|
|
|
e797f0b |
+++ ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/FromGeneric.java 2011-07-06 13:14:16.240382297 -0400
|
|
|
e797f0b |
@@ -505,10 +505,10 @@ class genclasses {
|
|
|
e797f0b |
protected A0 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A0(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L0() throws Throwable { return convert_L((Object)invoker.invokeExact(target)); }
|
|
|
e797f0b |
- protected Object invoke_I0() throws Throwable { return convert_I((int) invoker.invokeExact(target)); }
|
|
|
e797f0b |
- protected Object invoke_J0() throws Throwable { return convert_J((long) invoker.invokeExact(target)); }
|
|
|
e797f0b |
- protected Object invoke_F0() throws Throwable { return convert_F((float) invoker.invokeExact(target)); }
|
|
|
e797f0b |
- protected Object invoke_D0() throws Throwable { return convert_D((double)invoker.invokeExact(target)); }
|
|
|
e797f0b |
+ protected Object invoke_I0() throws Throwable { return convert_I((Integer) invoker.invokeExact(target)); }
|
|
|
e797f0b |
+ protected Object invoke_J0() throws Throwable { return convert_J((Long) invoker.invokeExact(target)); }
|
|
|
e797f0b |
+ protected Object invoke_F0() throws Throwable { return convert_F((Float) invoker.invokeExact(target)); }
|
|
|
e797f0b |
+ protected Object invoke_D0() throws Throwable { return convert_D((Double)invoker.invokeExact(target)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A1 extends Adapter {
|
|
|
e797f0b |
protected A1(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -517,10 +517,10 @@ class genclasses {
|
|
|
e797f0b |
protected A1 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A1(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L1(Object a0) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
- protected Object invoke_I1(Object a0) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
- protected Object invoke_J1(Object a0) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
- protected Object invoke_F1(Object a0) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
- protected Object invoke_D1(Object a0) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
+ protected Object invoke_I1(Object a0) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
+ protected Object invoke_J1(Object a0) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
+ protected Object invoke_F1(Object a0) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
+ protected Object invoke_D1(Object a0) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A2 extends Adapter {
|
|
|
e797f0b |
protected A2(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -529,10 +529,10 @@ class genclasses {
|
|
|
e797f0b |
protected A2 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A2(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L2(Object a0, Object a1) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
- protected Object invoke_I2(Object a0, Object a1) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
- protected Object invoke_J2(Object a0, Object a1) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
- protected Object invoke_F2(Object a0, Object a1) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
- protected Object invoke_D2(Object a0, Object a1) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
+ protected Object invoke_I2(Object a0, Object a1) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
+ protected Object invoke_J2(Object a0, Object a1) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
+ protected Object invoke_F2(Object a0, Object a1) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
+ protected Object invoke_D2(Object a0, Object a1) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A3 extends Adapter {
|
|
|
e797f0b |
protected A3(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -541,10 +541,10 @@ class genclasses {
|
|
|
e797f0b |
protected A3 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A3(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L3(Object a0, Object a1, Object a2) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
- protected Object invoke_I3(Object a0, Object a1, Object a2) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
- protected Object invoke_J3(Object a0, Object a1, Object a2) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
- protected Object invoke_F3(Object a0, Object a1, Object a2) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
- protected Object invoke_D3(Object a0, Object a1, Object a2) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
+ protected Object invoke_I3(Object a0, Object a1, Object a2) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
+ protected Object invoke_J3(Object a0, Object a1, Object a2) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
+ protected Object invoke_F3(Object a0, Object a1, Object a2) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
+ protected Object invoke_D3(Object a0, Object a1, Object a2) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A4 extends Adapter {
|
|
|
e797f0b |
protected A4(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -553,10 +553,10 @@ class genclasses {
|
|
|
e797f0b |
protected A4 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A4(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
- protected Object invoke_I4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
- protected Object invoke_J4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
- protected Object invoke_F4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
- protected Object invoke_D4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
+ protected Object invoke_I4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
+ protected Object invoke_J4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
+ protected Object invoke_F4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
+ protected Object invoke_D4(Object a0, Object a1, Object a2, Object a3) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A5 extends Adapter {
|
|
|
e797f0b |
protected A5(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -565,10 +565,10 @@ class genclasses {
|
|
|
e797f0b |
protected A5 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A5(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
- protected Object invoke_I5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
- protected Object invoke_J5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
- protected Object invoke_F5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
- protected Object invoke_D5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
+ protected Object invoke_I5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
+ protected Object invoke_J5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
+ protected Object invoke_F5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
+ protected Object invoke_D5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3, a4)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A6 extends Adapter {
|
|
|
e797f0b |
protected A6(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -577,10 +577,10 @@ class genclasses {
|
|
|
e797f0b |
protected A6 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A6(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
- protected Object invoke_I6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
- protected Object invoke_J6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
- protected Object invoke_F6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
- protected Object invoke_D6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
+ protected Object invoke_I6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
+ protected Object invoke_J6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
+ protected Object invoke_F6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
+ protected Object invoke_D6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A7 extends Adapter {
|
|
|
e797f0b |
protected A7(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -589,10 +589,10 @@ class genclasses {
|
|
|
e797f0b |
protected A7 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A7(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
- protected Object invoke_I7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
- protected Object invoke_J7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
- protected Object invoke_F7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
- protected Object invoke_D7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
+ protected Object invoke_I7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
+ protected Object invoke_J7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
+ protected Object invoke_F7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
+ protected Object invoke_D7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A8 extends Adapter {
|
|
|
e797f0b |
protected A8(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -601,10 +601,10 @@ class genclasses {
|
|
|
e797f0b |
protected A8 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A8(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
- protected Object invoke_I8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
- protected Object invoke_J8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
- protected Object invoke_F8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
- protected Object invoke_D8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
+ protected Object invoke_I8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
+ protected Object invoke_J8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
+ protected Object invoke_F8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
+ protected Object invoke_D8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A9 extends Adapter {
|
|
|
e797f0b |
protected A9(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -613,10 +613,10 @@ class genclasses {
|
|
|
e797f0b |
protected A9 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A9(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
- protected Object invoke_I9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
- protected Object invoke_J9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
- protected Object invoke_F9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
- protected Object invoke_D9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
+ protected Object invoke_I9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
+ protected Object invoke_J9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
+ protected Object invoke_F9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
+ protected Object invoke_D9(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
static class A10 extends Adapter {
|
|
|
e797f0b |
protected A10(MethodHandle entryPoint) { super(entryPoint); } // to build prototype
|
|
|
e797f0b |
@@ -625,9 +625,9 @@ class genclasses {
|
|
|
e797f0b |
protected A10 makeInstance(MethodHandle e, MethodHandle i, MethodHandle c, MethodHandle t)
|
|
|
e797f0b |
{ return new A10(e, i, c, t); }
|
|
|
e797f0b |
protected Object invoke_L10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_L((Object)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
- protected Object invoke_I10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_I((int) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
- protected Object invoke_J10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_J((long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
- protected Object invoke_F10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_F((float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
- protected Object invoke_D10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_D((double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
+ protected Object invoke_I10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_I((Integer) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
+ protected Object invoke_J10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_J((Long) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
+ protected Object invoke_F10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_F((Float) invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
+ protected Object invoke_D10(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7, Object a8, Object a9) throws Throwable { return convert_D((Double)invoker.invokeExact(target, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)); }
|
|
|
e797f0b |
}
|
|
|
e797f0b |
}
|
|
|
e797f0b |
diff -up ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/MethodHandleImpl.java.sav ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/MethodHandleImpl.java
|
|
|
e797f0b |
--- ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/MethodHandleImpl.java.sav 2011-06-27 13:28:36.000000000 -0400
|
|
|
e797f0b |
+++ ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/MethodHandleImpl.java 2011-07-06 13:14:16.240382297 -0400
|
|
|
e797f0b |
@@ -956,52 +956,52 @@ import static java.lang.invoke.MethodHan
|
|
|
e797f0b |
return addTypeString(target, this);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_V(Object... av) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(av))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(av))
|
|
|
e797f0b |
return target.invokeExact(av);
|
|
|
e797f0b |
return fallback.invokeExact(av);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L0() throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact())
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact())
|
|
|
e797f0b |
return target.invokeExact();
|
|
|
e797f0b |
return fallback.invokeExact();
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L1(Object a0) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0))
|
|
|
e797f0b |
return target.invokeExact(a0);
|
|
|
e797f0b |
return fallback.invokeExact(a0);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L2(Object a0, Object a1) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1))
|
|
|
e797f0b |
return target.invokeExact(a0, a1);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L3(Object a0, Object a1, Object a2) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1, a2))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1, a2))
|
|
|
e797f0b |
return target.invokeExact(a0, a1, a2);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1, a2);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L4(Object a0, Object a1, Object a2, Object a3) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1, a2, a3))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1, a2, a3))
|
|
|
e797f0b |
return target.invokeExact(a0, a1, a2, a3);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1, a2, a3);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L5(Object a0, Object a1, Object a2, Object a3, Object a4) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1, a2, a3, a4))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1, a2, a3, a4))
|
|
|
e797f0b |
return target.invokeExact(a0, a1, a2, a3, a4);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1, a2, a3, a4);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L6(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1, a2, a3, a4, a5))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1, a2, a3, a4, a5))
|
|
|
e797f0b |
return target.invokeExact(a0, a1, a2, a3, a4, a5);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1, a2, a3, a4, a5);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L7(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1, a2, a3, a4, a5, a6))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1, a2, a3, a4, a5, a6))
|
|
|
e797f0b |
return target.invokeExact(a0, a1, a2, a3, a4, a5, a6);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1, a2, a3, a4, a5, a6);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
private Object invoke_L8(Object a0, Object a1, Object a2, Object a3, Object a4, Object a5, Object a6, Object a7) throws Throwable {
|
|
|
e797f0b |
- if ((boolean) test.invokeExact(a0, a1, a2, a3, a4, a5, a6, a7))
|
|
|
e797f0b |
+ if ((Boolean) test.invokeExact(a0, a1, a2, a3, a4, a5, a6, a7))
|
|
|
e797f0b |
return target.invokeExact(a0, a1, a2, a3, a4, a5, a6, a7);
|
|
|
e797f0b |
return fallback.invokeExact(a0, a1, a2, a3, a4, a5, a6, a7);
|
|
|
e797f0b |
}
|
|
|
e797f0b |
diff -up ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/ToGeneric.java.sav ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/ToGeneric.java
|
|
|
e797f0b |
--- ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/ToGeneric.java.sav 2011-06-27 13:28:38.000000000 -0400
|
|
|
e797f0b |
+++ ./openjdk-boot/jdk/src/share/classes/java/lang/invoke/ToGeneric.java 2011-07-06 13:14:16.241382276 -0400
|
|
|
e797f0b |
@@ -394,10 +394,10 @@ class ToGeneric {
|
|
|
e797f0b |
|
|
|
e797f0b |
// Code to run when the generic target has finished and produced a value.
|
|
|
e797f0b |
protected Object return_L(Object res) throws Throwable { return (Object)convert.invokeExact(res); }
|
|
|
e797f0b |
- protected int return_I(Object res) throws Throwable { return (int) convert.invokeExact(res); }
|
|
|
e797f0b |
- protected long return_J(Object res) throws Throwable { return (long) convert.invokeExact(res); }
|
|
|
e797f0b |
- protected float return_F(Object res) throws Throwable { return (float) convert.invokeExact(res); }
|
|
|
e797f0b |
- protected double return_D(Object res) throws Throwable { return (double)convert.invokeExact(res); }
|
|
|
e797f0b |
+ protected int return_I(Object res) throws Throwable { return (Integer) convert.invokeExact(res); }
|
|
|
e797f0b |
+ protected long return_J(Object res) throws Throwable { return (Long) convert.invokeExact(res); }
|
|
|
e797f0b |
+ protected float return_F(Object res) throws Throwable { return (Float) convert.invokeExact(res); }
|
|
|
e797f0b |
+ protected double return_D(Object res) throws Throwable { return (Double)convert.invokeExact(res); }
|
|
|
e797f0b |
|
|
|
e797f0b |
static private final String CLASS_PREFIX; // "java.lang.invoke.ToGeneric$"
|
|
|
e797f0b |
static {
|
|
|
e797f0b |
diff -up ./openjdk-boot/jdk/src/share/classes/sun/invoke/util/ValueConversions.java.sav ./openjdk-boot/jdk/src/share/classes/sun/invoke/util/ValueConversions.java
|
|
|
e797f0b |
--- ./openjdk-boot/jdk/src/share/classes/sun/invoke/util/ValueConversions.java.sav 2011-06-27 13:36:46.000000000 -0400
|
|
|
e797f0b |
+++ ./openjdk-boot/jdk/src/share/classes/sun/invoke/util/ValueConversions.java 2011-07-06 13:14:30.892131655 -0400
|
|
|
e797f0b |
@@ -223,9 +223,9 @@ public class ValueConversions {
|
|
|
e797f0b |
if (x instanceof Number) {
|
|
|
e797f0b |
res = (Number) x;
|
|
|
e797f0b |
} else if (x instanceof Boolean) {
|
|
|
e797f0b |
- res = ((boolean)x ? ONE_INT : ZERO_INT);
|
|
|
e797f0b |
+ res = ((Boolean)x ? ONE_INT : ZERO_INT);
|
|
|
e797f0b |
} else if (x instanceof Character) {
|
|
|
e797f0b |
- res = (int)(char)x;
|
|
|
e797f0b |
+ res = (int)(Character)x;
|
|
|
e797f0b |
} else {
|
|
|
e797f0b |
// this will fail with the required ClassCastException:
|
|
|
e797f0b |
res = (Number) x;
|
|
|
e797f0b |
@@ -386,7 +386,7 @@ public class ValueConversions {
|
|
|
e797f0b |
|
|
|
e797f0b |
static int unboxRawInteger(Object x) {
|
|
|
e797f0b |
if (x instanceof Integer)
|
|
|
e797f0b |
- return (int) x;
|
|
|
e797f0b |
+ return (Integer) x;
|
|
|
e797f0b |
else
|
|
|
e797f0b |
return (int) unboxLong(x, false);
|
|
|
e797f0b |
}
|