corda/classpath/java/lang
Johannes Schindelin 0a179355f4 Pass the correct Method instance to the InvocationHandlers
We should pass the method of the original interface to the
InvocationHandler, not the method of the interface.

That way, proxy instances of annotations will have easy access to
the default values.

This happens to be compatible with the way Oracle Java does it, too.

To accomplish our goal, we keep a global map between proxy classes and
Method references and assign the appropriate list to a field of the
Proxy subclass. This means that we now have to call the super-class
constructor in the generated constructor (which is the correct thing to
do anyway... ;-)).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2013-11-27 10:35:48 -06:00
..
annotation update copyright years 2013-07-02 20:52:38 -06:00
ref update copyright years 2013-07-02 20:52:38 -06:00
reflect Pass the correct Method instance to the InvocationHandlers 2013-11-27 10:35:48 -06:00
AbstractMethodError.java update copyright years 2013-07-02 20:52:38 -06:00
Appendable.java update copyright years 2013-07-02 20:52:38 -06:00
ArithmeticException.java update copyright years 2013-07-02 20:52:38 -06:00
ArrayIndexOutOfBoundsException.java update copyright years 2013-07-02 20:52:38 -06:00
ArrayStoreException.java update copyright years 2013-07-02 20:52:38 -06:00
AssertionError.java update copyright years 2013-07-02 20:52:38 -06:00
Boolean.java Add the Boolean#getBoolean method 2013-10-25 15:32:33 -05:00
Byte.java update copyright years 2013-07-02 20:52:38 -06:00
Character.java Add java.lang.Character#isISOControl(char) 2013-10-18 15:01:36 -05:00
CharSequence.java update copyright years 2013-07-02 20:52:38 -06:00
Class.java Implement Class#getDeclaredClasses 2013-11-06 09:07:58 -06:00
ClassCastException.java update copyright years 2013-07-02 20:52:38 -06:00
ClassLoader.java update copyright years 2013-07-02 20:52:38 -06:00
ClassNotFoundException.java update copyright years 2013-07-02 20:52:38 -06:00
Cloneable.java update copyright years 2013-07-02 20:52:38 -06:00
CloneNotSupportedException.java update copyright years 2013-07-02 20:52:38 -06:00
Comparable.java update copyright years 2013-07-02 20:52:38 -06:00
Deprecated.java update copyright years 2013-07-02 20:52:38 -06:00
Double.java Add java.lang.Double#doubleToLongBits 2013-10-18 15:01:36 -05:00
Enum.java update copyright years 2013-07-02 20:52:38 -06:00
Error.java update copyright years 2013-07-02 20:52:38 -06:00
Exception.java update copyright years 2013-07-02 20:52:38 -06:00
ExceptionInInitializerError.java update copyright years 2013-07-02 20:52:38 -06:00
Float.java update copyright years 2013-07-02 20:52:38 -06:00
IllegalAccessError.java update copyright years 2013-07-02 20:52:38 -06:00
IllegalAccessException.java update copyright years 2013-07-02 20:52:38 -06:00
IllegalArgumentException.java update copyright years 2013-07-02 20:52:38 -06:00
IllegalMonitorStateException.java update copyright years 2013-07-02 20:52:38 -06:00
IllegalStateException.java update copyright years 2013-07-02 20:52:38 -06:00
IllegalThreadStateException.java update copyright years 2013-07-02 20:52:38 -06:00
IncompatibleClassChangeError.java update copyright years 2013-07-02 20:52:38 -06:00
IndexOutOfBoundsException.java update copyright years 2013-07-02 20:52:38 -06:00
InheritableThreadLocal.java update copyright years 2013-07-02 20:52:38 -06:00
InstantiationError.java update copyright years 2013-07-02 20:52:38 -06:00
InstantiationException.java update copyright years 2013-07-02 20:52:38 -06:00
Integer.java Add the Integer#decode method 2013-10-25 15:32:33 -05:00
InterruptedException.java update copyright years 2013-07-02 20:52:38 -06:00
Iterable.java update copyright years 2013-07-02 20:52:38 -06:00
LinkageError.java update copyright years 2013-07-02 20:52:38 -06:00
Long.java fix Avian classpath build 2013-02-22 11:55:01 -07:00
Math.java Implement the Math#signum method 2013-11-06 09:07:58 -06:00
NegativeArraySizeException.java update copyright years 2013-07-02 20:52:38 -06:00
NoClassDefFoundError.java update copyright years 2013-07-02 20:52:38 -06:00
NoSuchFieldError.java update copyright years 2013-07-02 20:52:38 -06:00
NoSuchFieldException.java update copyright years 2013-07-02 20:52:38 -06:00
NoSuchMethodError.java update copyright years 2013-07-02 20:52:38 -06:00
NoSuchMethodException.java update copyright years 2013-07-02 20:52:38 -06:00
NullPointerException.java update copyright years 2013-07-02 20:52:38 -06:00
Number.java Mark java.lang.Number as serializable 2013-11-06 09:12:18 -06:00
NumberFormatException.java update copyright years 2013-07-02 20:52:38 -06:00
Object.java update copyright years 2013-07-02 20:52:38 -06:00
OutOfMemoryError.java update copyright years 2013-07-02 20:52:38 -06:00
Override.java update copyright years 2013-07-02 20:52:38 -06:00
Package.java update copyright years 2013-07-02 20:52:38 -06:00
Process.java update copyright years 2013-07-02 20:52:38 -06:00
ReflectiveOperationException.java update copyright years 2013-07-02 20:52:38 -06:00
Runnable.java update copyright years 2013-07-02 20:52:38 -06:00
Runtime.java update copyright years 2013-07-02 20:52:38 -06:00
RuntimeException.java update copyright years 2013-07-02 20:52:38 -06:00
RuntimePermission.java update copyright years 2013-07-02 20:52:38 -06:00
SecurityException.java update copyright years 2013-07-02 20:52:38 -06:00
SecurityManager.java update copyright years 2013-07-02 20:52:38 -06:00
Short.java update copyright years 2013-07-02 20:52:38 -06:00
StackOverflowError.java update copyright years 2013-07-02 20:52:38 -06:00
StackTraceElement.java update copyright years 2013-07-02 20:52:38 -06:00
String.java Adjust fromIndex in String#lastIndexOf if necessary 2013-10-25 15:32:33 -05:00
StringBuffer.java update copyright years 2013-07-02 20:52:38 -06:00
StringBuilder.java update copyright years 2013-07-02 20:52:38 -06:00
SuppressWarnings.java update copyright years 2013-07-02 20:52:38 -06:00
System.java update copyright years 2013-07-02 20:52:38 -06:00
Thread.java update copyright years 2013-07-02 20:52:38 -06:00
ThreadDeath.java update copyright years 2013-07-02 20:52:38 -06:00
ThreadGroup.java update copyright years 2013-07-02 20:52:38 -06:00
ThreadLocal.java update copyright years 2013-07-02 20:52:38 -06:00
Throwable.java update copyright years 2013-07-02 20:52:38 -06:00
UnsatisfiedLinkError.java update copyright years 2013-07-02 20:52:38 -06:00
UnsupportedOperationException.java update copyright years 2013-07-02 20:52:38 -06:00
VirtualMachineError.java update copyright years 2013-07-02 20:52:38 -06:00
Void.java update copyright years 2013-07-02 20:52:38 -06:00