Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Oliver Heger
Alec Swan schrieb: Thanks, this approach worked. One minor problem I ran into was that the merged configuration always has a new line at the end even if the default configuration does not have a new line at the end of the file. Is there a way to control if the new line should be added or not? T

Re: svn commit: r785552 - in /commons/proper/math/trunk/src: java/org/apache/commons/math/complex/Complex.java site/xdoc/changes.xml

2009-06-17 Thread Bill Barker
- Original Message - From: To: "Commons Developers List" Sent: Wednesday, June 17, 2009 2:58 PM Subject: Re: svn commit: r785552 - in /commons/proper/math/trunk/src: java/org/apache/commons/math/complex/Complex.java site/xdoc/changes.xml - "Phil Steitz" a écrit : Sorry if

Re: [pool] Re: Apache Common Pool Road Map

2009-06-17 Thread Phil Steitz
Alexander Chmyr wrote: Hello Phil, Maybe it make sence to freeze 1.x and do only bugfixing there. AFAIK new development based on JDKs later than 1.5, hense production environment for existing do not going to be updated to 1.5 and older Yes. This is what I meant. Maintain 1.x with no interfac

[continuum] BUILD SUCCESSFUL: Commons - Commons Collections -

2009-06-17 Thread contin...@vmbuild.apache.org
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=195514&projectId=160 Build statistics: State: Ok Previous State: Failed Started at: Wed 17 Jun 2009 17:31:57 -0700 Finished at: Wed 17 Jun 2009 17:34:19 -0700 Total time: 2m 21s Build Trigger: Schedule Bu

JEXL divide by zero

2009-06-17 Thread Kelly Chen
Currently in ASTDivNode.java and ASTModNode.java, we explicitly catch div/0 and return 0. The code snippet looks like the following: /* * catch div/0 */ if (r.doubleValue() == 0.0) { return new Double(0.0); } I just wonder what is t

Re: svn commit: r785844 - /commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java

2009-06-17 Thread sebb
On 17/06/2009, joe...@apache.org wrote: > Author: joehni > Date: Wed Jun 17 22:28:09 2009 > New Revision: 785844 > > URL: http://svn.apache.org/viewvc?rev=785844&view=rev > Log: > Removing entries with the MapIterator may also result in a > ConcurrentModificationException (COLLECTIONS-330).

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
Thanks, this approach worked. One minor problem I ran into was that the merged configuration always has a new line at the end even if the default configuration does not have a new line at the end of the file. Is there a way to control if the new line should be added or not? Thanks. On Wed, Jun 1

Re: [VOTE] Release commons-email-1.2 based on RC1

2009-06-17 Thread sebb
On 17/06/2009, Siegfried Goeschl wrote: > Hi Sebastian, > > can you re-run the test from SVN trunk on your OpenDNS environment - I > think I went through all the issues but want to avoid wasting RCs The tests all complete OK when not connected to the internet, but I get failures when connected:

Re: svn commit: r785552 - in /commons/proper/math/trunk/src: java/org/apache/commons/math/complex/Complex.java site/xdoc/changes.xml

2009-06-17 Thread luc . maisonobe
- "Phil Steitz" a écrit : > Sorry if I am being dense here. What serialization problem do the new > fields cause, exactly? The class is immutable and they are set by the > constructor. It takes more space to store. If someone uses serialization to store or send a bunch of complex this will

Re: [VOTE] Release commons-email-1.2 based on RC1

2009-06-17 Thread Siegfried Goeschl
Hi Sebastian, can you re-run the test from SVN trunk on your OpenDNS environment - I think I went through all the issues but want to avoid wasting RCs Thanks in advance Siegfried Goeschl sebb wrote: > On 12/06/2009, Siegfried Goeschl wrote: > >> Hi Sebastian, >> >> I remembered on my way h

Re: [pool] Re: Apache Common Pool Road Map

2009-06-17 Thread Alexander Chmyr
Hello Phil, Maybe it make sence to freeze 1.x and do only bugfixing there. AFAIK new development based on JDKs later than 1.5, hense production environment for existing do not going to be updated to 1.5 and older Alexander Chmyr Software Engineer Cogniance, Inc -- http://cl

Re: [math] talk about commons-math

2009-06-17 Thread Phil Steitz
On 6/17/09, luc.maison...@free.fr wrote: > Hello, > > I will give a talk on commons-math June 25th at a symposium organized by one > of the technical competence centers (CCT) at the french space agency (Centre > National d'Études Spatiales, CNES). > Cool! > The theme of the symposium is on high p

Re: svn commit: r785552 - in /commons/proper/math/trunk/src: java/org/apache/commons/math/complex/Complex.java site/xdoc/changes.xml

2009-06-17 Thread Phil Steitz
Sorry if I am being dense here. What serialization problem do the new fields cause, exactly? The class is immutable and they are set by the constructor. On 6/17/09, luc.maison...@free.fr wrote: > The Complex class is still Serializable and should remain so. This change > adds two fields that seem

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Oliver Heger
Alec Swan schrieb: Can the following be done with Commons Configurations? 1. Load defaults into a PropertyConfiguration object. 2. Load overrides into a Java Properties object. (Note that I do not need to preserve the formatting of overrides.) 3. Iterate over the overrides properties and set val

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Oliver Heger
Alec Swan schrieb: This is really unfortunate. The merged configuration is required to preserve comments from defaults, but not necessarily overrides. Are there any plans to add this functionality in the near future? Thanks. This is a new feature that was not considered before. I think, it i

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
Can the following be done with Commons Configurations? 1. Load defaults into a PropertyConfiguration object. 2. Load overrides into a Java Properties object. (Note that I do not need to preserve the formatting of overrides.) 3. Iterate over the overrides properties and set values on corresponding

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
This is really unfortunate. The merged configuration is required to preserve comments from defaults, but not necessarily overrides. Are there any plans to add this functionality in the near future? Thanks. On Wed, Jun 17, 2009 at 1:54 PM, Oliver Heger wrote: > Alec Swan schrieb: > >> I wrote th

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Oliver Heger
Alec Swan schrieb: I wrote the code following the example on http://commons.apache.org/configuration/userguide-1.2/howto_compositeconfiguration.html There is no save() method in CompositeConfiguration. How can I save it? Thanks. The merged configuration produced by CompositeConfiguration is o

[math] talk about commons-math

2009-06-17 Thread luc . maisonobe
Hello, I will give a talk on commons-math June 25th at a symposium organized by one of the technical competence centers (CCT) at the french space agency (Centre National d'Études Spatiales, CNES). The theme of the symposium is on high performance computing and the organizer asked me to present

Re: svn commit: r785552 - in /commons/proper/math/trunk/src: java/org/apache/commons/math/complex/Complex.java site/xdoc/changes.xml

2009-06-17 Thread luc . maisonobe
The Complex class is still Serializable and should remain so. This change adds two fields that seem not good candidate to serialization. Would'nt it be better to mark these fields as transient and reset them at deserialization time in a new readObject method ? Luc - pste...@apache.org a éc

[continuum] BUILD FAILURE: Commons - Commons Collections -

2009-06-17 Thread contin...@vmbuild.apache.org
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=195484&projectId=160 Build statistics: State: Failed Previous State: Failed Started at: Wed 17 Jun 2009 10:32:15 -0700 Finished at: Wed 17 Jun 2009 10:34:42 -0700 Total time: 2m 26s Build Trigger: Schedule

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
I wrote the code following the example on http://commons.apache.org/configuration/userguide-1.2/howto_compositeconfiguration.html There is no save() method in CompositeConfiguration. How can I save it? Thanks. On Wed, Jun 17, 2009 at 11:23 AM, Jörg Schaible wrote: > Alec Swan wrote at Mittwoch

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Jörg Schaible
Alec Swan wrote at Mittwoch, 17. Juni 2009 18:39: > Thank you for updating the subject, Jörg. > > I changed the order in which I add defaults and overrides. The following > is the new code: > > // merge overrides with defaults > CompositeConfiguration comp

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
Thank you for updating the subject, Jörg. I changed the order in which I add defaults and overrides. The following is the new code: // merge overrides with defaults CompositeConfiguration compositeConfig = new CompositeConfiguration(overridingConfig);

Re: [jexl] Remove Maven 1 support from 2.0 branch?

2009-06-17 Thread Jörg Schaible
Henrib wrote at Mittwoch, 17. Juni 2009 17:07: > > I guess it is related but this means the build.xml that could be used > through ant is no longer available. > It was pretty convenient though (being able to build through ant rather > than Maven2, less download, "easy" src setup). > > Would that

Re: [jexl] Remove Maven 1 support from 2.0 branch?

2009-06-17 Thread Henrib
I guess it is related but this means the build.xml that could be used through ant is no longer available. It was pretty convenient though (being able to build through ant rather than Maven2, less download, "easy" src setup). Would that be a huge/confusing problem to reintroduce the ant build ? Ch

Re: [pool] Re: Apache Common Pool Road Map

2009-06-17 Thread Dheeraj Kumar
I agree for most of written under 2.x track on http://wiki.apache.org/jakarta-commons/PoolRoadMap. except, returnObject should throw an exception whenever required. I wrote expected sample interface at http://code.google.com/p/jnaturals/source/browse/trunk/Pool/src/com/dksidana/java/pool/ -Regard

[g...@vmgump]: Project commons-jelly-tags-fmt-test (in module commons-jelly) failed

2009-06-17 Thread commons-jelly-tags-fmt development
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-jelly-tags-fmt-test has an issue affecting its community integrat

[pool] Re: Apache Common Pool Road Map

2009-06-17 Thread Phil Steitz
Dheeraj Kumar wrote: Hello, Congratulations on Pool 1.5.1 release. I was looking for Java 1.5 generics support on Apache Commons Pool and found out RoadMap at http://wiki.apache.org/jakarta-commons/PoolRoadMap (last edited 2006-09-10 02:28:23 by SandyMcArthur). Other than that, bug related

Re: [JEXL] svn props for svn commit: r784442

2009-06-17 Thread sebb
On 17/06/2009, Jörg Schaible wrote: > sebb wrote at Dienstag, 16. Juni 2009 11:29: > > > > On 16/06/2009, Christian Grobmeier wrote: > >> >> Thanks for looking at these patch(es) :-) > >> >> Can you add svn props to the above files and fix your client config? > >> > >> > >> Yes, sorry. I

[g...@vmgump]: Project commons-configuration-test (in module apache-commons) failed

2009-06-17 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-configuration-test has an issue affecting its community integrati

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Jörg Schaible
Hi Alec, as commons contains quite a lot of components, it is best practice to include the component's name iln the subject to give a reader the context of your question. Alec Swan wrote at Mittwoch, 17. Juni 2009 00:00: > I have a property file containing default configurations in a key=value >

Re: [JEXL] svn props for svn commit: r784442

2009-06-17 Thread Jörg Schaible
sebb wrote at Dienstag, 16. Juni 2009 11:29: > On 16/06/2009, Christian Grobmeier wrote: >> >> Thanks for looking at these patch(es) :-) >> >> Can you add svn props to the above files and fix your client config? >> >> >> Yes, sorry. I have done so now and fixed all the files sebb suggested >>