541542543544545546547548549550551552553
CoderResult cr; try { cr = encodeLoop(in, out); } catch (BufferUnderflowException x) { throw new CoderMalfunctionError(x); } catch (BufferOverflowException x) { throw new CoderMalfunctionError(x); } if (cr.isOverflow()) return cr;
576577578579580581582583584585586587588
CoderResult cr; try { cr = decodeLoop(in, out); } catch (BufferUnderflowException x) { throw new CoderMalfunctionError(x); } catch (BufferOverflowException x) { throw new CoderMalfunctionError(x); } if (cr.isOverflow()) return cr;
558559560561562563564565566567568569570
3031323334353637
/* * Test constructor with normal param. */ public void testConstructor_Normal() { Exception ex = new Exception(); CoderMalfunctionError e = new CoderMalfunctionError(ex); assertSame(ex, e.getCause()); }
3839404142434445
/* * Test constructor with null param. */ public void testConstructor_Null() { CoderMalfunctionError e = new CoderMalfunctionError(null); assertNull(e.getCause()); }
47484950515253
/** * @tests serialization/deserialization compatibility. */ public void testSerializationSelf() throws Exception { SerializationTest.verifySelf(new CoderMalfunctionError(null)); }
5455565758596061
/** * @tests serialization/deserialization compatibility with RI. */ public void testSerializationCompatibility() throws Exception { SerializationTest.verifyGolden(this, new CoderMalfunctionError(null)); }