Community
Participate
Working Groups
The method org.eclipse.jdt.core.IClassFile.getType() method used to be defined as throwing JavaModelException. Code exists that make use of this method, and that code no longer compiles with error messages similar to this: >> 37. ERROR in /some/path/SomeClass.java (at line 2306) >> } catch (JavaModelException e) { >> ^^^^^^^^^^^^^^^^^^ >> Unreachable catch block for JavaModelException. This exception is never thrown >> from the try statement body This seems like an unintentional API change to the getType method that appeared between M5 and M6 of Eclipse 3.3. Can the throws statement be put back to avoid these errors?
This is a consequence of fix for bug 154667. You need to remove the try/catch. Closing as WONTFIX.
Thanks for clarifying the API change rules. We'll remove the catch and move on.