Home /Modules/tests/unhandled-checked-exception.java

unhandled-checked-exception.java

tests/java_constraints/unhandled-checked-exception.java · 8 line(s) · java

// EXPECT: UnhandledCheckedException
class UnhandledCheckedException {
  void test() {
    java.io.IOException value = new java.io.IOException();
    throw value;
  }
}