After upgrading to Java 1.8.0_20 our test system reported errors, but the code was not changed. I found out, that Math.pow()
called with exactly the same input
It is a bug. I reported it to ORACLE (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8063086), it was accepted and is fixed in Java 9.
I have found the following bug report:
JDK-7021568 : Double.parseDouble() returns architecture dependent results
It is very similar in that it reports a floating-point operation returning slightly different results in JITed code vs interpreted code.
The issue is marked as a bug and has been fixed. On this basis I would argue that what you're seeing is also a bug and should be reported to Oracle.