@@ -95,11 +95,12 @@ e.printStackTrace(); } System.err.println("af = " + af); System.err.println("bufferSize = " + bufferSize); throw new RuntimeException("Expected exception is not thrown"); - } catch (final LineUnavailableException ignored) { + } catch (IllegalArgumentException + | LineUnavailableException ignored) { // the test is not applicable } } } }