Use the default value in annotations' proxies

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-31 01:44:03 -05:00
parent 58ec623d7a
commit 6f5bcb00b9

View File

@ -27,6 +27,6 @@ public class AnnotationInvocationHandler implements InvocationHandler {
return data[i + 1]; return data[i + 1];
} }
} }
throw new IllegalArgumentException(); return method.getDefaultValue();
} }
} }