Package org.aspectj.apache.bcel.verifier.exc

Examples of org.aspectj.apache.bcel.verifier.exc.StaticCodeInstructionOperandConstraintException


     
      // An "own" constraint, due to JustIce's new definition of what "subroutine" means.
      if (i instanceof JsrInstruction){
        InstructionHandle target = ((JsrInstruction) i).getTarget();
        if (target == instructionList.getStart()){
          throw new StaticCodeInstructionOperandConstraintException("Due to JustIce's clear definition of subroutines, no JSR or JSR_W may have a top-level instruction (such as the very first instruction, which is targeted by instruction '"+ih+"' as its target.");
        }
        if (!(target.getInstruction() instanceof ASTORE)){
          throw new StaticCodeInstructionOperandConstraintException("Due to JustIce's clear definition of subroutines, no JSR or JSR_W may target anything else than an ASTORE instruction. Instruction '"+ih+"' targets '"+target+"'.");
        }
      }
     
      // vmspec2, page 134-137
      ih.accept(v);
View Full Code Here


    /**
     * A utility method to always raise an exeption.
     */
    private void constraintViolated(Instruction i, String message) {
      throw new StaticCodeInstructionOperandConstraintException("Instruction "+i+" constraint violated: "+message);
    }
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.verifier.exc.StaticCodeInstructionOperandConstraintException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.