summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/annotation/AnnotationImpl.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-09-07 02:09:58 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-09-07 02:09:58 +0000
commit5292871f7db7057392530d77c18dee8a7492f91b (patch)
tree31127f477d575e6e2ff91f294eea929e871dca6b /src/main/javassist/bytecode/annotation/AnnotationImpl.java
parent51e498f02bc9dba6eb69b61d8ac553d7ffc08f00 (diff)
downloadjavassist-5292871f7db7057392530d77c18dee8a7492f91b.tar.gz
javassist-5292871f7db7057392530d77c18dee8a7492f91b.zip
fixed a bug found when an annotation includes an empty array.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@206 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/annotation/AnnotationImpl.java')
-rw-r--r--src/main/javassist/bytecode/annotation/AnnotationImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/javassist/bytecode/annotation/AnnotationImpl.java b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
index f81b7b46..d4718ffc 100644
--- a/src/main/javassist/bytecode/annotation/AnnotationImpl.java
+++ b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
@@ -56,12 +56,12 @@ class AnnotationImpl implements InvocationHandler {
String name = method.getName();
MemberValue mv = annotation.getMemberValue(name);
if (mv == null)
- return getDefault(name);
+ return getDefault(name, method);
else
- return mv.getValue(classLoader, pool);
+ return mv.getValue(classLoader, pool, method);
}
- private Object getDefault(String name)
+ private Object getDefault(String name, Method method)
throws ClassNotFoundException, RuntimeException
{
String classname = annotation.getTypeName();
@@ -76,7 +76,7 @@ class AnnotationImpl implements InvocationHandler {
minfo.getAttribute(AnnotationDefaultAttribute.tag);
if (ainfo != null) {
MemberValue mv = ainfo.getDefaultValue();
- return mv.getValue(classLoader, pool);
+ return mv.getValue(classLoader, pool, method);
}
}
}