[PATCH] java.nio/6593946 ByteBuffer.compact does not clear mark

2007-09-26 Thread Keith Seitz
Hi, The attached patch should fix the mark problem with ByteBuffer.compact, which simply was not following the API specification. I'm also attaching a simple jtreg testcase for this. Keith diff -r 317d604b4da9 j2se/src/share/classes/java/nio/Buffer.java --- a/j2se/src/share/classes/java/nio/B

[PATCH] java.math/4428022 Float/Double.toString trailing zeros

2007-09-26 Thread Keith Seitz
Hi, I believe the attached patch fixes the trailing zero problem mentioned in several bugs (in addition to $SUBJECT), including 4511638, 6575880, and 4191279. The problem arises because sun.misc.FloatingDecimal.getChars and sun.misc.FloatingDecimal.dtoa disagree about when numbers are represen