diff --git a/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java b/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java index ba40d47f7..e0a6be1f0 100644 --- a/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java +++ b/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java @@ -83,7 +83,9 @@ public class ClassAnnotationMetaDataFilter implements MetaDataFilter { idx += 4 + table.readInt(idx); } } catch (ArrayIndexOutOfBoundsException e) { - throw new ClassFormatError(rsrc.getName()); + Error cfe = new ClassFormatError(rsrc.getName()); + cfe.initCause(e); + throw cfe; } return false; }