You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by tc...@apache.org on 2010/01/10 21:18:11 UTC

svn commit: r897698 - /jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java

Author: tcurdt
Date: Sun Jan 10 20:18:11 2010
New Revision: 897698

URL: http://svn.apache.org/viewvc?rev=897698&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47902 by Enrico Gueli

fixed Class constant type for LDC and LDC_W


Modified:
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java?rev=897698&r1=897697&r2=897698&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java Sun Jan 10 20:18:11 2010
@@ -19,6 +19,7 @@
 
 import org.apache.bcel.Constants;
 import org.apache.bcel.classfile.Constant;
+import org.apache.bcel.classfile.ConstantClass;
 import org.apache.bcel.classfile.ConstantDouble;
 import org.apache.bcel.classfile.ConstantFloat;
 import org.apache.bcel.classfile.ConstantInteger;
@@ -904,6 +905,9 @@
 		if (c instanceof ConstantString){
 			stack().push(Type.STRING);
 		}
+		if (c instanceof ConstantClass){
+			stack().push(Type.CLASS);
+		}
 	}
 	/** Symbolically executes the corresponding Java Virtual Machine instruction. */ 
 	public void visitLDC_W(LDC_W o){
@@ -917,6 +921,9 @@
 		if (c instanceof ConstantString){
 			stack().push(Type.STRING);
 		}
+		if (c instanceof ConstantClass){
+			stack().push(Type.CLASS);
+		}
 	}
 	/** Symbolically executes the corresponding Java Virtual Machine instruction. */ 
 	public void visitLDC2_W(LDC2_W o){



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org