1 package gov.nasa.jpf.jvm.bytecode; 20 21 import gov.nasa.jpf.jvm.KernelState; 22 import gov.nasa.jpf.jvm.SystemState; 23 import gov.nasa.jpf.jvm.ThreadInfo; 24 25 import org.apache.bcel.classfile.ConstantPool; 26 27 28 32 public class ATHROW extends Instruction { 33 public void setPeer (org.apache.bcel.generic.Instruction i, ConstantPool cp) { 34 } 35 36 public Instruction execute (SystemState ss, KernelState ks, ThreadInfo th) { 37 int objref = th.pop(); 38 39 if (objref == -1) { 40 return th.createAndThrowException("java.lang.NullPointerException"); 41 } 42 43 return th.throwException(objref); 44 } 45 46 public int getByteCode () { 47 return 0xBF; 48 } 49 } 50 | Popular Tags |