[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: please test: XMLEncoder patch - version 2

From: Roman Kennke
Subject: Re: please test: XMLEncoder patch - version 2
Date: Mon, 09 Jan 2006 22:35:22 +0100

Hi Mark,

Am Montag, den 09.01.2006, 22:13 +0100 schrieb Mark Wielaard:
> Hi,
> On Mon, 2006-01-09 at 21:30 +0100, Robert Schuster wrote:
> > the PDs have to be registered to make out-of-the-box encoders (new
> > XMLEncoder(...)) be able to process instances of those classes.
> > However: If you want to split Swing out of the class library there is
> > no point in trying to register a PD for them since the class isnt
> > there anyway.
> > 
> > I prepare a patch that will resolve this issue by using
> > Class.forName() which is allowed to fail for such classes.
> I was hoping that we could use some instanceof trick since all the
> "special" delegates are for classes that implement java.util.Map. Am I
> right this is indeed the case for all these classes? If so maybe you
> could special case when a class has a null classloader (bootstrap
> classloader) and is an instanceof java.util.Map?

How can using instanceof solve this problem? I mean, if we write x
instanceof UIDefaults, the class UIDefaults is still referenced and
needs to be there. You can't compile that with this class missing. Or am
I missing something here?


Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]