Description of problem: Match.cos(1647100) produces wrong result. It should produce 0.7833030468809974. Version-Release number of selected component (if applicable): # rpm -qf /usr/lib/jvm/java-11-openjdk/bin/java java-11-openjdk-headless-11.0.ea.28-4.fc28.aarch64 Steps to Reproduce: $ cat TestMath.java public class TestMath { public static void main(String[] args) { double res = Math.cos(1647100); if (res != 0.7833030468809974) { System.out.println("Test FAILED! Got: " + res + " instead of 0.7833030468809974"); } else { System.out.println("Test passed!"); } } } $ javac TestMath.java $ /usr/lib/jvm/java-11-openjdk/bin/java TestMath Test FAILED! Got: -0.2745634094819721 instead of 0.7833030468809974 Actual results: Test FAILED! Got: -0.2745634094819721 instead of 0.7833030468809974 Expected results: Test passed! Additional info: This is the corresponding upstream bug: https://bugs.openjdk.java.net/browse/JDK-8210461
https://src.fedoraproject.org/rpms/java-11-openjdk/pull-request/4 Works around this issue by disabling the relevant intrinsics.
Prior the PR: # /usr/lib/jvm/java-11-openjdk/bin/java TestMath Test FAILED! Got: -0.2745634094819721 instead of 0.7833030468809974 # rpm -qf /usr/lib/jvm/java-11-openjdk/bin/java java-11-openjdk-headless-11.0.ea.28-4.fc30.aarch64 With the patch (-5) from [1]: # /usr/lib/jvm/java-11-openjdk/bin/java TestMath Test passed! # rpm -qf /usr/lib/jvm/java-11-openjdk/bin/java java-11-openjdk-headless-11.0.ea.28-5.fc30.aarch64 [1] https://koji.fedoraproject.org/koji/taskinfo?taskID=29652239 I'm going to merge this.
Should be fixed once this build completes: https://koji.fedoraproject.org/koji/buildinfo?buildID=1144605
java-11-openjdk-11.0.ea.28-5.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-22ef555fb7
java-11-openjdk-11.0.ea.28-6.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-22ef555fb7
java-11-openjdk-11.0.ea.28-6.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-972ab7ba3e
java-11-openjdk-11.0.ea.28-6.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-972ab7ba3e
java-11-openjdk-11.0.ea.28-6.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-22ef555fb7
java-11-openjdk-11.0.ea.28-8.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-f10566c2e0
java-11-openjdk-11.0.ea.28-8.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e402b3f75c
java-11-openjdk-11.0.ea.28-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c34978a9f4
java-11-openjdk-11.0.ea.28-8.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c34978a9f4
java-11-openjdk-11.0.ea.28-8.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-f10566c2e0
java-11-openjdk-11.0.ea.28-8.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e402b3f75c
java-11-openjdk-11.0.ea.28-8.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
java-11-openjdk-11.0.ea.28-8.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
java-11-openjdk-11.0.ea.28-8.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.