Community
Participate
Working Groups
An Unhandled Exception error is reported by the gui instead of a Type-safety warning in the following code: ---- package test; import test.SomeOtherClass.SomeException; public class SomeClass<T> { public SomeClass() throws SomeOtherClass.SomeException { throw new SomeOtherClass.SomeException(); } public static void main(String[] args) { // reports uncaught exception compiler error try { SomeClass<String> x = new SomeClass(); System.out.println(x.hashCode()); } catch (SomeException e) { } // reports type safety warning try { SomeClass<String> x = new SomeClass(); System.out.println(x.hashCode()); } catch (Exception e) { } // correct try { SomeClass<String> x = new SomeClass<String>(); System.out.println(x.hashCode()); } catch (SomeException e) { } } }
Cannot reproduce any issue with a recent 3.2 drop. Closing as worksforme, if you can still reproduce it, then pls reopen it with complete steps (including missing required SomeOtherClass file). Also please check your .log for a stacktrace which may reveal the underlying issue.