[Fb-contrib-commit] SF.net SVN: fb-contrib:[1721] trunk/fb-contrib
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2012-10-25 14:11:15
|
Revision: 1721
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1721&view=rev
Author: dbrosius
Date: 2012-10-25 14:11:03 +0000 (Thu, 25 Oct 2012)
Log Message:
-----------
uptake from git
Modified Paths:
--------------
trunk/fb-contrib/samples/LEST_Sample.java
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java
Modified: trunk/fb-contrib/samples/LEST_Sample.java
===================================================================
--- trunk/fb-contrib/samples/LEST_Sample.java 2012-10-20 02:17:27 UTC (rev 1720)
+++ trunk/fb-contrib/samples/LEST_Sample.java 2012-10-25 14:11:03 UTC (rev 1721)
@@ -127,6 +127,18 @@
}
}
+ public void testLestFP8()
+ {
+ try
+ {
+ Thread.sleep(10L);
+ }
+ catch (Exception ex)
+ {
+ throw new AssertionError(ex);
+ }
+ }
+
private Exception wrap(Exception e) {
return new Exception(e);
}
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2012-10-20 02:17:27 UTC (rev 1720)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2012-10-25 14:11:03 UTC (rev 1721)
@@ -55,10 +55,13 @@
{
private static JavaClass errorClass;
private static JavaClass throwableClass;
+ private static JavaClass assertionClass;
+
static {
try {
errorClass = Repository.lookupClass("java/lang/Error");
throwableClass = Repository.lookupClass("java/lang/Throwable");
+ assertionClass = Repository.lookupClass("java/lang/AssertionError");
} catch (ClassNotFoundException cnfe) {
errorClass = null;
throwableClass = null;
@@ -215,6 +218,11 @@
markAsValid = true;
break;
}
+ if (exClass.instanceOf(assertionClass)) {
+ //just ignore LEST for AssertionErrors
+ markAsValid = true;
+ break;
+ }
}
} else if (isPossibleExBuilder(catchInfo.getRegister())) {
markAsValid = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|