[Fb-contrib-commit] SF.net SVN: fb-contrib: [617] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/de
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-08-15 03:15:43
|
Revision: 617 Author: dbrosius Date: 2006-08-14 20:15:39 -0700 (Mon, 14 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=617&view=rev Log Message: ----------- look for catch variable range end, by looking at pc+2 when entering the catch block to account for ASTORE 5, like operations, not just ASTORE_3. 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-14 22:37:05 UTC (rev 616) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2006-08-15 03:15:39 UTC (rev 617) @@ -182,7 +182,7 @@ exReg.put(Integer14.valueOf(reg), Boolean.TRUE); LocalVariableTable lvt = getMethod().getLocalVariableTable(); if (lvt != null) { - LocalVariable lv = lvt.getLocalVariable(reg, pc+1); + LocalVariable lv = lvt.getLocalVariable(reg, pc+2); if (lv != null) { int finish = lv.getStartPC() + lv.getLength(); if (finish < catchInfo.getFinish()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |