Why does this not compile (tried with java 8 and java 10)? It yields a missing return statement error.
public class CompilerIssue {
public boolean run() {
throwIAE();
// Missing return statement
}
public void throwIAE() {
throw new IllegalStateException("error");
}
}