[Fb-contrib-commit] SF.net SVN: fb-contrib:[1491] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-18 17:00:11
|
Revision: 1491
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1491&view=rev
Author: dbrosius
Date: 2010-01-18 16:59:58 +0000 (Mon, 18 Jan 2010)
Log Message:
-----------
clear loadedClassTypes on a store, if the variable isn't a class array
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ReflectionOnObjectMethods.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ReflectionOnObjectMethods.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ReflectionOnObjectMethods.java 2010-01-18 16:57:46 UTC (rev 1490)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ReflectionOnObjectMethods.java 2010-01-18 16:59:58 UTC (rev 1491)
@@ -106,14 +106,16 @@
case ASTORE_2:
case ASTORE_3:
case ASTORE: {
+ Integer reg = Integer.valueOf(RegisterUtils.getAStoreReg(this, seen));
if (stack.getStackDepth() >= 1) {
OpcodeStack.Item item = stack.getStackItem(0);
String[] arrayTypes = (String[])item.getUserValue();
if (arrayTypes != null) {
- int reg = RegisterUtils.getAStoreReg(this, seen);
- localClassTypes.put(Integer.valueOf(reg), arrayTypes);
+ localClassTypes.put(reg, arrayTypes);
+ return;
}
- }
+ }
+ localClassTypes.remove(reg);
}
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|