test/java/lang/Float/BitwiseConversion.java

Print this page

        

*** 23,37 **** /* * @test * @bug 5037596 * @summary Verify bitwise conversion works for non-canonical NaN values * @author Joseph D. Darcy */ import static java.lang.Float.*; ! import static sun.misc.FloatConsts.*; public class BitwiseConversion { static int testNanCase(int x) { int errors = 0; // Strip out sign and exponent bits --- 23,40 ---- /* * @test * @bug 5037596 * @summary Verify bitwise conversion works for non-canonical NaN values + * @library /lib/testlibrary + * @build jdk.testlibrary.FloatUtils + * @run main BitwiseConversion * @author Joseph D. Darcy */ import static java.lang.Float.*; ! import static jdk.testlibrary.FloatUtils.*; public class BitwiseConversion { static int testNanCase(int x) { int errors = 0; // Strip out sign and exponent bits