commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Pugh" <>
Subject [configuration] Refactor AbstractConfiguration(Configuration defaults)
Date Sat, 14 Feb 2004 19:02:43 GMT
Hi all,

Based on the Bugzilla 26694 (BaseConfiguration: containsKey ignores default
properties) bug, I think that the constructor for
AbstractConfiguration(Configuration defaults) should be removed..

Basically it is providing the equivalent of a CompositeConfiguration built
using the ConfigurationFactory's union versus override rules..  The
semantics are kinda weird to have these defaults..  If you want defualts
that are used when something else is missing, then just do:

CompositeConfiguration cc = new CompositeConfiguration();
return cc;

And that does the same thing, but cleaner!  Any opinons?  Otherwise I am
going to delete it (after of course going and writing the testcase to prove
26694 (argh!)).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message