[Fb-contrib-commit] SF.net SVN: fb-contrib: [618] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/de
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-08-16 04:21:30
|
Revision: 618 Author: dbrosius Date: 2006-08-15 21:21:25 -0700 (Tue, 15 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=618&view=rev Log Message: ----------- the last statement of a try block doesn't have to be a return, or a goto, if there is a finally block. Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2006-08-15 03:15:39 UTC (rev 617) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2006-08-16 04:21:25 UTC (rev 618) @@ -163,10 +163,12 @@ int pc = getPC(); for (CodeException ex : exceptions) { if (pc == ex.getEndPC()) { - if ((seen >= IRETURN) && (seen <= RETURN)) { + if ((seen >= IRETURN) && (seen <= RETURN)) addCatchBlock(ex.getHandlerPC(), Integer.MAX_VALUE); - } else if ((seen == GOTO) || (seen == GOTO_W)) + else if ((seen == GOTO) || (seen == GOTO_W)) addCatchBlock(ex.getHandlerPC(), this.getBranchTarget()); + else + addCatchBlock(ex.getHandlerPC(), Integer.MAX_VALUE); return; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |