You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a particular case with an anonymous inner class that the plugin appears not to correctly detect that the @SneakyThrows annotation should handle the thrown exception.
package bugReport;
import lombok.SneakyThrows;
import java.io.IOException;
public class BugReport {
private IInner inner;
//@SneakyThrows(IOException.class)
public BugReport() {
inner = new IInner() {
@SneakyThrows(IOException.class)
@Override
public IInner doSomething() {
throw new IOException();
}
};
}
interface IInner {
public IInner doSomething() throws IOException;
}
}
If you uncomment the sneaky throws, it will compile in Intellij, but it will fail in javac with the following message: ...exception java.io.IOException is never thrown in body of corresponding try statement.
The text was updated successfully, but these errors were encountered:
There is a particular case with an anonymous inner class that the plugin appears not to correctly detect that the @SneakyThrows annotation should handle the thrown exception.
If you uncomment the sneaky throws, it will compile in Intellij, but it will fail in javac with the following message: ...exception java.io.IOException is never thrown in body of corresponding try statement.
The text was updated successfully, but these errors were encountered: