From: chibash Date: Thu, 26 Oct 2017 21:12:33 +0000 (+0900) Subject: fixes a bug of getAnnotations(). Some hidden annotations were not ignored. X-Git-Tag: rel_3_23_0_ga~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c9c209727daa0a56685ed2283b3ce9497b495a6c;p=javassist.git fixes a bug of getAnnotations(). Some hidden annotations were not ignored. --- diff --git a/javassist.jar b/javassist.jar index 72927741..7d27f307 100644 Binary files a/javassist.jar and b/javassist.jar differ diff --git a/src/main/javassist/bytecode/annotation/Annotation.java b/src/main/javassist/bytecode/annotation/Annotation.java index 6054f549..10ceb8ee 100644 --- a/src/main/javassist/bytecode/annotation/Annotation.java +++ b/src/main/javassist/bytecode/annotation/Annotation.java @@ -303,6 +303,10 @@ public class Annotation { */ throw new ClassNotFoundException(clazz.getName(), e); } + catch (IllegalAccessError e2) { + // also IllegalAccessError + throw new ClassNotFoundException(clazz.getName(), e2); + } } /**