Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 63288 invoked from network); 3 Jun 2004 20:17:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jun 2004 20:17:40 -0000 Received: (qmail 6272 invoked by uid 500); 3 Jun 2004 20:17:50 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 6218 invoked by uid 500); 3 Jun 2004 20:17:48 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 6196 invoked by uid 99); 3 Jun 2004 20:17:47 -0000 Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 03 Jun 2004 13:17:47 -0700 Received: (qmail 13552 invoked by uid 50); 3 Jun 2004 20:18:23 -0000 Date: 3 Jun 2004 20:18:23 -0000 Message-ID: <20040603201823.13551.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 29294] - [lang][PATCH] lang.math.Fraction class deficiencies X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=29294 [lang][PATCH] lang.math.Fraction class deficiencies ------- Additional Comments From cananian@alumni.princeton.edu 2004-06-03 20:18 ------- My response to Stephen's comments (slightly edited for brevity): From: C. Scott Ananian On Thu, 3 Jun 2004, Stephen Colebourne wrote: > I had a 5 second look yesterday, and realised how big the change is. My > immediate concern is that the Fraction class has lost its final status, > making it less immutable. The idea is to remove the deprecated methods in some future version of lang; at which point Fraction can be made final again (and BadFraction completely disappears). It would be harder to purge BadFraction if its code is mixed willy-nilly with the 'real' Fraction code. The constructor for Fraction is package-private (or should be!) so no one outside the lang package can create a subclass in any case. > Also, I wasn't sure what 'relatively prime' actually meant. Its probably too > mathematical for the target audience in [lang]. Formal definition: http://mathworld.wolfram.com/RelativelyPrime.html It just means that there is no integer greater than one which divides both numbers evenly (gcd(x,y)==1), or (equivalently) that the fraction is "simplified". I'll be glad to add that to the javadoc. > Finally, I believe that [lang] is the right place for these (including > BigFraction). They represent missing parts of the JDK, so [lang] is > appropriate. ok. --scott --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org