This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> No my assumption was based on a conversation I had with > the original author a couple of years ago... Well, JDBC does use BigDecimal, and was presumably a motivator for including it in JDK1.1. I agree that geneating random primes suggests crypto, and may have been a motivator for the "original author" of BigInteger. What you did not explain was whether by "orginal author" you mean the person who wrote a BigInteger class that java.math.BigInteger was based on, if this pre-dates JDK1.1, or you mean the person at JavaSoft who "owned" java.math in JDK1.1, or if they are the same person. In any case, big numbers are useful for various applications, inlcuding crypto. It is important that the generated "random" values be the same on all platforms, and that is difficult with Sun's missing specifications. (Even the specifications of java.io in the JLS is incomplete; classes not specified on the JLS often are way under-specified. And the Class Libraries books, in additions to *not* being specifications, have lots of mistakes.) --Per Bothner Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner