You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/03/21 02:47:45 UTC

DO NOT REPLY [Bug 39043] New: - [math] FractionFormatTest doesn't compile under JDK 1.3

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39043

           Summary: [math]  FractionFormatTest doesn't compile under JDK 1.3
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: Math
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: niallp@apache.org


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).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39043] - [math] FractionFormatTest doesn't compile under JDK 1.3

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39043





------- Additional Comments From phil@steitz.com  2006-03-21 04:21 -------
Thanks for reporting this.  Looks like the compile problem was introduced in
r240383 (after 1.1 release), but ComplexUtils test was included as is in 1.1. 
Will research some more and validate problem on other platforms.  Complile patch
at least should be applied.  

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39043] - [math] FractionFormatTest doesn't compile under JDK 1.3

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39043





------- Additional Comments From niallp@apache.org  2006-03-21 01:48 -------
Created an attachment (id=17928)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17928&action=view)
Patch for FractionFormatTest


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39043] - [math] FractionFormatTest doesn't compile under JDK 1.3

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39043





------- Additional Comments From phil@steitz.com  2006-03-26 03:54 -------
Patch to fix compile error applied.  Thanks!

The ComplexUtils test failure does not happen on Sun Linux jdk 1.3.1_18 (which
is what the 1.1 release was created with).  This is disturbing, since the test
is there to verify documented behavior.  Looks to me like a bug in the windows
1.3 JDK, since what it causing the failures is that
Math.cos(Double.POSITIVE_INFINITY) is returning a non-NAN value, which according
to the API docs, it should not.

The only remedy that I can think of for this is to conditionally skip the
failing tests if the OS is windows.  Not nice.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39043] - [math] FractionFormatTest doesn't compile under JDK 1.3

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39043





------- Additional Comments From niallp@apache.org  2006-03-21 01:54 -------
Created an attachment (id=17929)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17929&action=view)
Output from ComplexUtilsTest

In case its of interest, heres the output from the ComplexUtilsTest which
failed under JDK 1.3

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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