[cp-patches] RFC: HTMLDocument.HTMLReader partial implementation

2005-12-12 Thread Anthony Balkissoon
This is a partial implementation of HTMLDocument.HTMLReader. I am still working on this, so it will be more fully implemented soon. I submit this as RFC because it has several methods that have nothing more than "FIXME: Implement" as well as some debugging statements. These are there so that Lill

Re: [cp-patches] FYI: Allow Security.setProperty("foo", null)

2005-12-12 Thread Tom Tromey
> "Gary" == Gary Benson <[EMAIL PROTECTED]> writes: Gary> At the moment Security.setProperty() will not allow the setting of Gary> null property values. Since Security.getProperty() returns null for Gary> unset properties this means that the following will fail: When you sent this last week

[cp-patches] StAX SAX parser

2005-12-12 Thread Chris Burdess
These classes implement a JAXP SAX parser on top of the new StAX implementation. 2005-12-12 Chris Burdess <[EMAIL PROTECTED]> * gnu/xml/stream/SAXParser.java, gnu/xml/stream/SAXParserFactory.java, gnu/xml/stream/XMLParser.java: SAX parser using StAX implementation.

Re: [cp-patches] FYI: New test for JComponent.getPreferredSize

2005-12-12 Thread Roman Kennke
Hiyo, Am 12.12.2005 schrieb "David Daney" <[EMAIL PROTECTED]>: >Roman Kennke wrote: >> I committed the attached patch that checks the correctness of various >> aspects of the JComponent.getPreferredSize() method. >> >> 2005-12-12 Roman Kennke <[EMAIL PROTECTED]> >> >> * gnu/testlet/jav

Re: [cp-patches] StAX parser

2005-12-12 Thread Chris Burdess
Mark Wielaard wrote: > > The attached patch provides a new StAX XML parser, mostly feature > > complete but currently without support for DTD validation. > > > > 2005-12-12 Chris Burdess <[EMAIL PROTECTED]> > > > >* gnu/xml/stream/XMLInputFactoryImpl.java, > > gnu/xml/stream/CRLFReade

Re: [cp-patches] FYI: New test for JComponent.getPreferredSize

2005-12-12 Thread David Daney
Roman Kennke wrote: I committed the attached patch that checks the correctness of various aspects of the JComponent.getPreferredSize() method. 2005-12-12 Roman Kennke <[EMAIL PROTECTED]> * gnu/testlet/javax/swing/JComponent/getPreferredSize.java: New test. /Roman But this i

Re: [cp-patches] StAX parser

2005-12-12 Thread Mark Wielaard
Hi Chris, On Mon, 2005-12-12 at 11:35 +, Chris Burdess wrote: > The attached patch provides a new StAX XML parser, mostly feature > complete but currently without support for DTD validation. > > 2005-12-12 Chris Burdess <[EMAIL PROTECTED]> > >* gnu/xml/stream/XMLInputFactoryImpl.java,

[cp-patches] FYI: Allow Security.setProperty("foo", null)

2005-12-12 Thread Gary Benson
Hi, At the moment Security.setProperty() will not allow the setting of null property values. Since Security.getProperty() returns null for unset properties this means that the following will fail: String key = "some.old.property"; Security.setProperty(key, Security.getProperty(key)); The ja

[cp-patches] FYI: JComponent fixlet

2005-12-12 Thread Roman Kennke
Hi all, I committed the attached patch which makes the new JComponent Mauve test pass. 2005-12-12 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/JComponent.java (getPreferredSize): Don't check for the minimumSize. According to a mauve test, this is not necessary. /Roma

[cp-patches] FYI: ViewportLayout fix

2005-12-12 Thread Roman Kennke
This patch makes the new ViewportLayout.layoutContainer Mauve test pass. 2005-12-12 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/ViewportLayout.java (layoutContainer): Always check and adjust the size, not only when portSize >= view.minSize. /Roman Index: javax/swing/

[cp-patches] FYI: New test for JComponent.getPreferredSize

2005-12-12 Thread Roman Kennke
I committed the attached patch that checks the correctness of various aspects of the JComponent.getPreferredSize() method. 2005-12-12 Roman Kennke <[EMAIL PROTECTED]> * gnu/testlet/javax/swing/JComponent/getPreferredSize.java: New test. /Roman // Tags: JDK1.2 // Copyright (C)

Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields

2005-12-12 Thread Robert Schuster
Hi. Stuart Ballard wrote: > I dunno, this seems pretty clean if it works: > > public class Throw { > private static Throwable t; > public Throw() throws Throwable {throw t;} > public static synchronized void uncheckedThrow(Throwable t) { > Throw.t = t; > try { > Throw.class.ne

Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields

2005-12-12 Thread Mark Wielaard
Hi Stuart, On Sun, 2005-12-11 at 21:42 -0500, Stuart Ballard wrote: > Throw.uncheckedThrow(new InvalidClassException("...")); > > A perfectly portable illegal-exception-thrower :) It is a nice hack. But I agree with Guilhem that "illegally" throwing checked exceptions from methods which are not

RE: [cp-patches] Re: RFC: Patchfor duplicate entries in serialPersistentFields

2005-12-12 Thread Jeroen Frijters
Archie Cobbs wrote: > Stuart Ballard wrote: > > Jeroen pointed out to me a while back that you can use > generics to throw an > > unchecked exception: > > There's also a way to do this without using JDK 1.5 stuff, but it's > even uglier :-) > > Construct a class (dynamically) that has a default

Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields

2005-12-12 Thread Stuart Ballard
On 12/11/05, Guilhem Lavaux <[EMAIL PROTECTED]> wrote: > Bah ! I would rather use a native function that will throw directly > InvalidClassException. The problem is that's will be anyway hidden to > the general user and that he/she may be surprised getting that sort of > exception. I dunno, this s