openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r482191 - /incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java
Date Mon, 04 Dec 2006 14:43:31 GMT
Author: kwsutter
Date: Mon Dec  4 06:43:30 2006
New Revision: 482191

URL: http://svn.apache.org/viewvc?view=rev&rev=482191
Log:
Include the original exception that caused the ClassFormatError to be thrown.

Modified:
    incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java

Modified: incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java?view=diff&rev=482191&r1=482190&r2=482191
==============================================================================
--- incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java
(original)
+++ incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/ClassAnnotationMetaDataFilter.java
Mon Dec  4 06:43:30 2006
@@ -83,7 +83,9 @@
                 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;
     }



Mime
View raw message