Community
Participate
Working Groups
Given the following code in a java 9 project without module-info.java: package nonmodular; import java.io.IOException; import java.sql.SQLException; public class ProblemWithThrowable { public void saveProperties() throws IOException { } } The following bogus error is reported: ---------- 1. ERROR in nonmodular\ProblemWithThrowable.java (at line 7) public void saveProperties() throws IOException { ^^^^^^^^^^^ No exception of type IOException can be thrown; an exception type must be a subclass of Throwable ----------
Reproduced
New Gerrit change created: https://git.eclipse.org/r/105254
+1 Will merge once the rebased hudson build approves.
Gerrit change https://git.eclipse.org/r/105254 was merged to [BETA_JAVA9]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=ac3e5d5ce47edc6a64f2f6e3bf5db4952cedca2f
(In reply to Stephan Herrmann from comment #3) > +1 > > Will merge once the rebased hudson build approves. Thanks for taking a look. I've merged so I could rebase the patch for 522398.(In reply to Eclipse Genie from comment #4) > Gerrit change https://git.eclipse.org/r/105254 was merged to [BETA_JAVA9]. > Commit: > http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/ > ?id=ac3e5d5ce47edc6a64f2f6e3bf5db4952cedca2f Released for BETA J9