Digged into this test which would fail only on JDK9, to figure out if it was a regression of Java. It turns out that DurationBridgeTest.testExceptionValueTooSmall is attempting to force an overflow in the computation of the Duration, however JDK9 is smarter in performing the computation and avoids the overflow (so failing the test). So it's not a regression but an improvement. It doesn't seem worth to try fooling it in some other way; we could use Byteman but I'd rather remove this test. |