mirror of https://github.com/apache/openjpa.git
Include the original exception that caused the ClassFormatError to be thrown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
970f647622
commit
dbcdfb9ff9
|
@ -83,7 +83,9 @@ public class ClassAnnotationMetaDataFilter implements MetaDataFilter {
|
||||||
idx += 4 + table.readInt(idx);
|
idx += 4 + table.readInt(idx);
|
||||||
}
|
}
|
||||||
} catch (ArrayIndexOutOfBoundsException e) {
|
} catch (ArrayIndexOutOfBoundsException e) {
|
||||||
throw new ClassFormatError(rsrc.getName());
|
Error cfe = new ClassFormatError(rsrc.getName());
|
||||||
|
cfe.initCause(e);
|
||||||
|
throw cfe;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue