OSDN Git Service

save
[jcfa/jcfa.git] / jcfa / src / jp / igapyon / jcfa / util / JcfaWriteUtil.java
index e8ca4f1..089d8b1 100644 (file)
@@ -12,6 +12,7 @@ import jp.igapyon.jcfa.vo.JcfaField;
 import jp.igapyon.jcfa.vo.JcfaMethod;
 import jp.igapyon.jcfa.vo.JcfaUnit;
 import jp.igapyon.jcfa.vo.operandstack.JcfaOSLocalVariable;
+import jp.igapyon.jcfa.vo.operandstack.JcfaOSRef;
 
 import org.apache.bcel.Constants;
 import org.apache.bcel.classfile.JavaClass;
@@ -152,10 +153,13 @@ public class JcfaWriteUtil {
                                break;
                        }
                        case Constants.GETSTATIC: {
-                               jcfaCode.getComment()
-                                               .getCommentList()
-                                               .add(JcfaUtil.getConstantFieldrefString(jc, codes[1],
-                                                               codes[2]));
+                               final JcfaOSRef osRef = new JcfaOSRef();
+                               jcfaMethod.getFrame().getOperandStack().push(osRef);
+                               osRef.setClassName(JcfaUtil.getConstantFieldrefString(jc,
+                                               codes[1], codes[2]));
+
+                               jcfaCode.getComment().getCommentList()
+                                               .add(osRef.getClassName());
                                break;
                        }
                        case Constants.LDC: {