Examples of InvalidBytecodeException


Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

        ConstantPoolGen cpg = getCPG();
        TypeFrame frame = getFrame();

        int numWordsConsumed = ins.consumeStack(cpg);
        if (numWordsConsumed == Constants.UNPREDICTABLE) {
            throw new InvalidBytecodeException("Unpredictable stack consumption for " + ins);
        }
        if (numWordsConsumed > frame.getStackDepth()) {
            throw new InvalidBytecodeException("Stack underflow for " + ins + ", " + numWordsConsumed + " needed, " + frame.getStackDepth() + " avail, frame is " + frame);
        }
        try {
            while (numWordsConsumed-- > 0) {
                frame.popValue();
            }
        } catch (DataflowAnalysisException e) {
            throw new InvalidBytecodeException("Stack underflow for " + ins + ": " + e.getMessage());
        }
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

     */
    @Override
    public void modelNormalInstruction(Instruction ins, int numWordsConsumed, int numWordsProduced) {
        if (VERIFY_INTEGRITY) {
            if (numWordsProduced > 0) {
                throw new InvalidBytecodeException("missing visitor method for " + ins);
            }
        }
        super.modelNormalInstruction(ins, numWordsConsumed, numWordsProduced);
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

            } else {
                super.handleStoreInstruction(obj);
            }

        } catch (DataflowAnalysisException e) {
            throw new InvalidBytecodeException(
                    "error handling store instruction ", e);
        }
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

     */
    @Override
    public void handleLoadInstruction(LoadInstruction obj) {
        int numProduced = obj.produceStack(cpg);
        if (numProduced == Constants.UNPREDICTABLE) {
            throw new InvalidBytecodeException("Unpredictable stack production");
        }

        if (numProduced != 1) {
            super.handleLoadInstruction(obj);
            return;
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

                pushValue(t);
            } else {
                pushValue(obj.getType(getCPG()));
            }
        } catch (DataflowAnalysisException e) {
            throw new InvalidBytecodeException("Stack underflow for " + obj + ": " + e.getMessage());
        }
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

            frame.pushValue(value);
            if (isExact) {
                setTopOfStackIsExact();
            }
        } catch (DataflowAnalysisException e) {
            throw new InvalidBytecodeException(e.toString());
        }
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.InvalidBytecodeException

                pushValue(arr.getElementType());
            } else {
                pushValue(TypeFrame.getBottomType());
            }
        } catch (DataflowAnalysisException e) {
            throw new InvalidBytecodeException("Stack underflow: " + e.getMessage());
        }
    }
View Full Code Here

Examples of nf.co.haxter.exception.InvalidBytecodeException

                }
                return new FrameNode(F_APPEND, locals.size(), locals.toArray(), 0, null);
              }
            }
        }
        throw new InvalidBytecodeException(args);

      default:
        throw new InvalidBytecodeException(args);
    }
  }
View Full Code Here

Examples of org.gjt.jclasslib.structures.InvalidByteCodeException

            int targetOffset = ((AbstractInstruction)instructions.get(i)).getOffset();
            if (targetOffset - startOffset == branchOffset) {
                return i;
            }
        }
        throw new InvalidByteCodeException("Invalid branch target");
    }
View Full Code Here

Examples of org.jboss.classfilewriter.InvalidBytecodeException

                    newContents.add(stackEntry);
                }
            }
            return new LocalVariableState(newContents, constPool);
        } else {
            throw new InvalidBytecodeException("entry is not an unitialized object. " + toString());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.