[hibernate-commits] Hibernate SVN: r18597 - core/trunk/annotations/src/test/java/org/hibernate/test/annotations.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Wed Jan 20 17:33:16 EST 2010
Author: hardy.ferentschik
Date: 2010-01-20 17:33:16 -0500 (Wed, 20 Jan 2010)
New Revision: 18597
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java
Log:
HHH-4822 proper placement of the fillStackTrace call
Modified: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java 2010-01-20 21:22:09 UTC (rev 18596)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java 2010-01-20 22:33:16 UTC (rev 18597)
@@ -227,15 +227,10 @@
closeSession();
throw t;
}
- catch ( InvocationTargetException e ) {
- e.fillInStackTrace();
- throw e.getTargetException();
- }
- catch ( IllegalAccessException e ) {
- e.fillInStackTrace();
- throw e;
- }
catch ( Throwable t ) {
+ if ( t instanceof InvocationTargetException || t instanceof IllegalAccessException ) {
+ t.fillInStackTrace();
+ }
closeSession();
if ( failureExpected ) {
FailureExpected ann = runMethod.getAnnotation( FailureExpected.class );
More information about the hibernate-commits
mailing list