[cp-patches] RFC: fix for PR 24642

2006-04-12 Thread Casey Marshall
This patch implements seeding of all SecureRandom instances if you call `nextBytes' without providing a seed yourself, and provides a better implementation of the static `getSeed' method. This introduces a new VM class, `java.security.VMSecureRandom,' that contains a single static method fo

Re: [cp-patches] RFC: local (unix-domain) sockets

2006-04-12 Thread Thomas Fitzsimmons
Hi, On Wed, 2006-04-12 at 18:11 -0700, Casey Marshall wrote: > Note that this patch has to be cleaned up a lot, mostly to add > detection for local socket support in configure. Also, SocketChannel > support is missing, but may not be too hard to implement. > > If there is interest, I can pol

[cp-patches] RFC: local (unix-domain) sockets

2006-04-12 Thread Casey Marshall
Hi. A few of us were chatting in IRC today about local socket support, aka Unix domain sockets, in Classpath (that is, where you bind a socket to a special file, instead of to a network address. This is used mostly for IPC; for example, local X11 connections can use local sockets). I ment

[cp-patches] FYI: InternalFrameEvent.paramString() implemented

2006-04-12 Thread David Gilbert
This patch (committed) implements the paramString() method in the InternalFrameEvent class. This method is used as an input into the toString() method, primarily to provide useful information in debugging output. I also tidied up the API docs a little. 2006-04-12 David Gilbert <[EMAIL PROTE

[cp-patches] PATCH: fix Fortuna

2006-04-12 Thread Casey Marshall
Hi. I was playing with the Fortuna PRNG a little, and found a bug where it would not initialize its block when `setup' is called (the Generator PRNG also has this problem). As a consequence, the first block you get out of the PRNG is all zeros. This patch fixes that problem. 2006-04-12

[cp-patches] FYI: fix for PR classpath/24481

2006-04-12 Thread Casey Marshall
Hi. This patch is an attempt to fix bug 24481, which has to do with issues setting seed values for SecureRandom implementations. It does this by updating the message digest with the seed; I don't know if this is the "correct" way to augment a MD-based PRNG, but it seems like it should be

Re: [cp-patches] FYI: Improve DataOutputStream.writeUTF()

2006-04-12 Thread Tom Tromey
> "Mark" == Mark Wielaard <[EMAIL PROTECTED]> writes: Mark> FAIL: gnu.testlet.java.io.ObjectInputOutput.OutputTest: Serializable: Mark> gnu.testlet.java.io.ObjectInputOutput.Test$Extern () (number 2) Mark> FAIL: gnu.testlet.java.text.DecimalFormatSymbols.serial (number 1) The new code wasn't

Re: [cp-patches] FYI: Merge Thread.UncaughtExceptionHandler support from generics branch

2006-04-12 Thread Mark Wielaard
Hi Archie, On Wed, 2006-04-12 at 09:10 -0500, Archie Cobbs wrote: > Mark Wielaard wrote: > > + /** > > + * > > + * Returns the handler used when this thread terminates due to an > > + * uncaught exception. The handler used is determined by the following: > > + * > > + * > > + * I

Re: [cp-patches] FYI: gnu.xml.dom.html2.* fixes and additions

2006-04-12 Thread Lillian Angel
More bug fixes for the parser and related classes. 2006-04-12 Lillian Angel <[EMAIL PROTECTED]> * gnu/xml/dom/DomDocument.java (checkNCName): Removed unneeded part of check. * gnu/xml/dom/DomNode.java (dispatchEvent): Added code to grow ancestors array if

[cp-patches] Patch: FYI: PR 27131

2006-04-12 Thread Tom Tromey
I'm checking this in. This fixes PR 27131. David already checked in a Mauve test for this. Tom 2006-04-12 Tom Tromey <[EMAIL PROTECTED]> PR classpath/27131: * java/util/BitSet.java (get): Early return if to==from. Index: java/util/BitSet.java

Re: [cp-patches] FYI: Merge Thread.UncaughtExceptionHandler support from generics branch

2006-04-12 Thread Archie Cobbs
Mark Wielaard wrote: + /** + * + * Returns the handler used when this thread terminates due to an + * uncaught exception. The handler used is determined by the following: + * + * + * If this thread has its own handler, this is returned. + * If not, then the handler of the thre

[cp-patches] FYI: Implement SecureRandom.getAlgorithm()

2006-04-12 Thread Mark Wielaard
Hi, While investigating a SecureRandom bug (which is being handled by Casey now) I was surprized to see there was no getAlgorithm() method. As it happens there should be one, but we just didn't have it yet. So here is it: 2006-04-12 Mark Wielaard <[EMAIL PROTECTED]> * java/security/SecureR

[cp-patches] FYI: Merge Thread.UncaughtExceptionHandler support from generics branch

2006-04-12 Thread Mark Wielaard
Hi, One of the Debian package maintainers requested that the Thread.UncaughtExceptionHandler support would be added to head since it isn't dependent on any new language features. This patch does so and documents the VMThread change needed for this in the NEWS file. The remaining diff between the

Re: [cp-patches] FYI: Improve DataOutputStream.writeUTF()

2006-04-12 Thread Mark Wielaard
Hi Bryce, On Tue, 2006-04-11 at 15:07 -0400, Bryce McKinlay wrote: > With GCJ and a simple benchmark, I get around a 1.5-3x performance > improvement depending on the String length. No mauve regressions. According to the autobuilder (and I just checked locally against mauve) this does trigger 2