Fails like this:
@BenchmarkMode(Mode.All)
public strictfp class StrictFPClassTest {
@Benchmark
public void test() {
// intentionally blank
}
@Test
public void compileTest() {
CompileTest.assertOK(this.getClass());
}
}
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
ERROR at line -1: warnings found and -Werror specified
@BenchmarkMode(Mode.All)
public strictfp class StrictFPClassTest {
@Benchmark
public void test() {
// intentionally blank
}
@Test
public void compileTest() {
CompileTest.assertOK(this.getClass());
}
}
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
WARNING at line 34: as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
ERROR at line -1: warnings found and -Werror specified
- links to
-
Review openjdk/jmh/46