fix Classpath 0.98 compatibility issues

This commit is contained in:
Joel Dice
2009-12-22 21:34:04 -07:00
parent 30db38ebd6
commit f588a62ae3
6 changed files with 94 additions and 6 deletions

View File

@ -82,6 +82,14 @@ public class Proxy {
}
}
public static boolean isProxyClass(Class c) {
return c.getName().startsWith("Proxy-");
}
public static InvocationHandler getInvocationHandler(Object proxy) {
return ((Proxy) proxy).h;
}
private static void set4(byte[] array, int offset, int v) {
array[offset ] = (byte) ((v >>> 24) & 0xFF);
array[offset + 1] = (byte) ((v >>> 16) & 0xFF);