DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35621>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35621 ------- Additional Comments From [EMAIL PROTECTED] 2005-07-09 11:18 ------- I fully agree with you. It's a bug that the load() method is called before some member fields that can influence the load process have been initialized. I will see what I can do about it. The fact that the includesAllowed flag is modified by the setBasePath() method seems to me like a quick hack. Now the following can happen: 1. A PropertiesConfiguration object is created 2. setIncludesAllowed(false) is called on this object 3. The configuration file is set (which invokes setBasePath) 4. load() is called Step 3 might enable the includesAllowed flag again, so that the results might be different than expected. This behavior of setBasePath() is documented, but I think it is indeed very confusing and it should be possible to find a better solution. Would anybody object if I changed this? This will be an incompatible change and can have impact on existing code, but IMO it would make usage of this API clearer. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]