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:
Kevin W. Sutter 2006-12-04 14:43:30 +00:00
parent 970f647622
commit dbcdfb9ff9
1 changed files with 3 additions and 1 deletions

View File

@ -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;
} }