6768697071727374757677
bm.writeBytes(new byte[] { (byte)4, (byte)5, (byte)6 }); bm.writeChar((char)7); bm.writeDouble(8.0); bm.writeFloat(9.0f); bm.writeInt(10); bm.writeLong(11l); bm.writeShort((short)12); bm.writeUTF("this is an UTF String"); bm.reset(); }
120121122123124125126127128129130
m.writeBoolean(myBool); m.writeByte(myByte); m.writeShort(myShort); m.writeChar(myChar); m.writeInt(myInt); m.writeLong(myLong); m.writeFloat(myFloat); m.writeDouble(myDouble); m.writeUTF(myString); m.writeBytes(myBytes); m.writeBytes(myBytes, 2, 3);
476477478479480481482483484485486
{ // OK } try { m2.writeLong(myLong); ProxyAssertSupport.fail(); } catch (javax.jms.MessageNotWriteableException e) { // OK
135136137138139140141142143144145
461462463464465466467468469470471
{ // OK } try { m2.writeLong(myLong); fail(); } catch (javax.jms.MessageNotWriteableException e) { // OK }
7677787980818283848586
bm.writeBytes(new byte[] {(byte)4, (byte)5, (byte)6}); bm.writeChar((char)7); bm.writeDouble(8.0); bm.writeFloat(9.0f); bm.writeInt(10); bm.writeLong(11l); bm.writeShort((short)12); bm.writeUTF("this is an UTF String"); bm.reset(); }