[cp-patches] FYI: Small bug in copy-vmresources.sh.in on small platform

2005-12-11 Thread Guilhem Lavaux
Hi, I have spotted a small problem on Darwin5/6 with copy-vmresources.sh.in. We need to add a '.' after some 'find' commands. This patch does this. ChangeLog: 2005-12-11 Guilhem Lavaux [EMAIL PROTECTED] * lib/copy-vmresources.sh.in: Added some '.' after find. Regards, Guilhem.

[cp-patches] RFC: Adding a cache for locale information

2005-12-11 Thread Guilhem Lavaux
Hi, Using ant we may have discovered that multiple creation of a SimpleDateFormat object can lead to a big slowdown. I am proposing the addition of a simple cache system. LocaleCache would cache ResourceBundle objects and some parsed strings in a WeakHashMap. If it is needed LocaleCache will

Re: [cp-patches] Patch: fix Float/DoubleBuffer.compareTo in the presence of NaN

2005-12-11 Thread Mark Wielaard
Hi Anthony, On Tue, 2005-12-06 at 18:50 -0800, Anthony Green wrote: Does it do the right thing if a is NaN and b is not? Or vice versa? If so, this is ok. Yes, definitely. Although I have what is probably an even simpler patch now. I'll commit the following later tomorrow unless there

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

2005-12-11 Thread Mark Wielaard
On Sat, 2005-12-10 at 20:16 +0100, Guilhem Lavaux wrote: Hi, Here is a patch which (partially) fix a regression in kaffe. If you define a class like that: class A { private static final ObjectStreamField[] serialPersistentFields = { new

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

2005-12-11 Thread Guilhem Lavaux
Mark Wielaard wrote: On Sat, 2005-12-10 at 20:16 +0100, Guilhem Lavaux wrote: Hi, Here is a patch which (partially) fix a regression in kaffe. If you define a class like that: class A { private static final ObjectStreamField[] serialPersistentFields = {

Re: [cp-patches] RFC: Adding a cache for locale information

2005-12-11 Thread Mark Wielaard
Hi, On Sun, 2005-12-11 at 14:20 +0100, Guilhem Lavaux wrote: Using ant we may have discovered that multiple creation of a SimpleDateFormat object can lead to a big slowdown. I am proposing the addition of a simple cache system. LocaleCache would cache ResourceBundle objects and some parsed

Re: [cp-patches] RFC: Adding a cache for locale information

2005-12-11 Thread Guilhem Lavaux
Mark Wielaard wrote: Hi, On Sun, 2005-12-11 at 14:20 +0100, Guilhem Lavaux wrote: Using ant we may have discovered that multiple creation of a SimpleDateFormat object can lead to a big slowdown. I am proposing the addition of a simple cache system. LocaleCache would cache ResourceBundle

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

2005-12-11 Thread Mark Wielaard
Hi Guilhem, On Sun, 2005-12-11 at 16:41 +0100, Guilhem Lavaux wrote: Why not do similar and throw the InvalidClassException from ObjectStreamClass.lookup()? (But then document that clearly in our version of course.) Because we would not have the same API. ObjectStreamClass.lookup may not

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

2005-12-11 Thread Guilhem Lavaux
Hi Mark, Mark Wielaard wrote: Hi Guilhem, On Sun, 2005-12-11 at 16:41 +0100, Guilhem Lavaux wrote: Why not do similar and throw the InvalidClassException from ObjectStreamClass.lookup()? (But then document that clearly in our version of course.) Because we would not have the same API.

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

2005-12-11 Thread Stuart Ballard
Why not do similar and throw the InvalidClassException from ObjectStreamClass.lookup()? (But then document that clearly in our version of course.) Because we would not have the same API. ObjectStreamClass.lookup may not throw any exception (except the default ones like Error, NPE, ...).

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

2005-12-11 Thread Archie Cobbs
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 constructor that simply throws whatever

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

2005-12-11 Thread Guilhem Lavaux
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 constructor

[cp-patches] FYI: Add branch rules to hacking guide

2005-12-11 Thread Mark Wielaard
Hi, This adds the branch rules we discussed on the main list to the Hacking Guide. 2005-12-11 Mark Wielaard [EMAIL PROTECTED] * doc/hacking.texinfo: Add section on branches. I also added a page to the developer wiki to document all branches: