Code example for ExemptionMechanism

Methods: genExemptionBlobinit

0
        } catch (OutOfMemoryError e) {
            capacity = v.size();
            v = null;
        } 
 
        v = new Vector();
        for (int i = 0; i < capacity/2; i++) {
            v.add(this);
        } 
        v = null;
        assertTrue(flag);
    } 
 
    class Mock_ExemptionMechanismSpi extends MyExemptionMechanismSpi { 
        @Override 
        protected byte[] engineGenExemptionBlob() 
        throws ExemptionMechanismException { 
            throw new ExemptionMechanismException();
        } 
 
        @Override 
        protected int engineGenExemptionBlob(byte[] output, int outputOffset)
        throws ShortBufferException, ExemptionMechanismException { 
            if (output.length - outputOffset < 
                    super.engineGenExemptionBlob(output, outputOffset)) {
                throw new ShortBufferException();
Contextual code suggestions in your IDE  Get Codota for Java