Home
last modified time | relevance | path

Searched refs:tryCatch (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/test/java/nio/Buffer/
DBasicInt.java566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicInt
604 private static void tryCatch(int[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicInt
605 tryCatch(IntBuffer.wrap(t), ex, thunk); in tryCatch()
688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test()
689 tryCatch(b, BufferOverflowException.class, () -> b.put((int)42)); in test()
[all …]
DBasicShort.java566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicShort
604 private static void tryCatch(short[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicShort
605 tryCatch(ShortBuffer.wrap(t), ex, thunk); in tryCatch()
688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test()
689 tryCatch(b, BufferOverflowException.class, () -> b.put((short)42)); in test()
[all …]
DBasicLong.java566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicLong
604 private static void tryCatch(long[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicLong
605 tryCatch(LongBuffer.wrap(t), ex, thunk); in tryCatch()
688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test()
689 tryCatch(b, BufferOverflowException.class, () -> b.put((long)42)); in test()
[all …]
DBasicFloat.java566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicFloat
604 private static void tryCatch(float[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicFloat
605 tryCatch(FloatBuffer.wrap(t), ex, thunk); in tryCatch()
688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test()
689 tryCatch(b, BufferOverflowException.class, () -> b.put((float)42)); in test()
[all …]
DBasicDouble.java566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicDouble
604 private static void tryCatch(double[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicDouble
605 tryCatch(DoubleBuffer.wrap(t), ex, thunk); in tryCatch()
688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test()
689 tryCatch(b, BufferOverflowException.class, () -> b.put((double)42)); in test()
[all …]
DBasicChar.java566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicChar
604 private static void tryCatch(char[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicChar
605 tryCatch(CharBuffer.wrap(t), ex, thunk); in tryCatch()
666 tryCatch(b, BufferOverflowException.class, () -> in test()
688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test()
[all …]
DBasicByte.java268 tryCatch(b, InvalidMarkException.class, () -> { in checkInvalidMarkException()
393 tryCatch(b, UnsupportedOperationException.class, in testAlign()
566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument()
570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument()
574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer()
578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds()
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicByte
604 private static void tryCatch(byte[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicByte
605 tryCatch(ByteBuffer.wrap(t), ex, thunk); in tryCatch()
[all …]
DBasic-X.java.template268 tryCatch(b, InvalidMarkException.class, () -> {
393 tryCatch(b, UnsupportedOperationException.class,
566 tryCatch(b, NullPointerException.class, thunk);
570 tryCatch(b, IllegalArgumentException.class, thunk);
574 tryCatch(b, ReadOnlyBufferException.class, thunk);
578 tryCatch(b, IndexOutOfBoundsException.class, thunk);
582 tryCatch(t, IndexOutOfBoundsException.class, thunk);
585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) {
604 private static void tryCatch($type$[] t, Class<?> ex, Runnable thunk) {
605 tryCatch($Type$Buffer.wrap(t), ex, thunk);
[all …]