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
The fix for #934 causes several Advantest internal tests to fail.
A simple test case here:
import java.io.Closeable;
import java.io.IOException;
public class X {
public static void main(String[] args) throws IOException {
try (DummyClosable closable = new DummyClosable()) {
throw new IOException("OMG!!!");
} catch (IOException e) {
throw e;
}
}
static class DummyClosable implements Closeable {
@Override
public void close() throws IOException {
System.out.println("Closed!");
}
}
}
Executed with ecj from master it throws IllegalArgumentException:
Closed!
Exception in thread "main" java.lang.IllegalArgumentException: Self-suppression not permitted
at java.base/java.lang.Throwable.addSuppressed(Throwable.java:1072)
at X.main(X.java:8)
Caused by: java.io.IOException: OMG!!!
at X.main(X.java:7)
With commit 2bac9e4 reverted, it prints what is expected to print:
Closed!
Exception in thread "main" java.io.IOException: OMG!!!
at X.main(X.java:7)
The text was updated successfully, but these errors were encountered:
Reported by @iloveeclipse in #934
The fix for #934 causes several Advantest internal tests to fail.
A simple test case here:
Executed with ecj from master it throws IllegalArgumentException:
With commit 2bac9e4 reverted, it prints what is expected to print:
The text was updated successfully, but these errors were encountered: