JDK-8303794 : IEEEremainder problems are causing test failures after JDK-8302801
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 21
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2023-03-07
  • Updated: 2023-04-06
  • Resolved: 2023-04-06
Related Reports
Relates :  
Relates :  
Description
The following test failed in the JDK21 CI:

java/text/Format/MessageFormat/MessageFormatsByArgumentIndex.java

Here's a snippet from the log file:

----------System.err:(14/865)----------
java.lang.UnsatisfiedLinkError: 'double java.lang.StrictMath.IEEEremainder(double, double)'
	at java.base/java.lang.StrictMath.IEEEremainder(Native Method)
	at java.base/java.lang.Math.IEEEremainder(Math.java:472)
	at java.base/java.text.ChoiceFormat.toPattern(ChoiceFormat.java:275)
	at java.base/java.text.MessageFormat.toPattern(MessageFormat.java:569)
	at MessageFormatsByArgumentIndex.main(MessageFormatsByArgumentIndex.java:59)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
	at java.base/java.lang.Thread.run(Thread.java:1623)

JavaTest Message: Test threw exception: java.lang.UnsatisfiedLinkError
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.UnsatisfiedLinkError: 'double java.lang.StrictMath.IEEEremainder(double, double)'
Comments
This issue was resolved by undoing the deletion of the FDLIBM C sources (JDK-8303799), porting IEEEremainder to Java (JDK-8304028), and re-deleting the C sources JDK-8303798.
06-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12915 Date: 2023-03-08 01:30:58 +0000
08-03-2023

The missing definition of IEEEremainder causes UnsatisfiedLinkError when using these JDK classes (directly or indirectly): - java/text/ChoiceFormat.java - java/awt/geom/Arc2D.java The following tests are known to be affected: - java/text/Format/MessageFormat/MessageFormatsByArgumentIndex.java - java/text/Format/MessageFormat/MessageRegression.java - java/awt/font/TextLayout/TestGetPixelBounds.java And the following microbenchmarks: - micro/org/openjdk/bench/java/lang/StrictMathBench.java - micro/org/openjdk/bench/java/lang/MathBench.java Benchmarks like specjbb are also impacted, as is running the JCK.
08-03-2023