commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aeriform (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MATH-82) [math] FractionFormatTest doesn't compile under JDK 1.3
Date Fri, 27 Oct 2006 08:00:17 GMT
    [ http://issues.apache.org/jira/browse/MATH-82?page=comments#action_12445114 ] 
            
aeriform commented on MATH-82:
------------------------------

Math ==>
    public static double sin(double a) {
	return StrictMath.sin(a); // default impl. delegates to StrictMath
    }
    public static double cos(double a) {
	return StrictMath.cos(a); // default impl. delegates to StrictMath
    }

StrictMath ==>
    public static native double sin(double a);
    public static native double cos(double a);

> [math]  FractionFormatTest doesn't compile under JDK 1.3
> --------------------------------------------------------
>
>                 Key: MATH-82
>                 URL: http://issues.apache.org/jira/browse/MATH-82
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Operating System: All
> Platform: All
>            Reporter: Niall Pemberton
>            Priority: Minor
>         Attachments: math_FractionFormatTest_JDK13.patch, TEST-org.apache.commons.math.complex.ComplexUtilsTest.txt
>
>
> FractionFormatTest uses NumberFormat.getIntegerInstance() which is a JDK 1.4 
> method. Changing this to use getInstance() instead and then using 
> setParseIntegerOnly(true) allows it to compile under JDK 1.3 - and the test 
> runs and passes.
> Its probably a moot point though since ComplexUtilsTest fails using JDK 
> 1.3.1_04 (on both W2K and Windows XP).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message