commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36488] New: - PropertiesConfiguration doesn't throw exception when path is directory
Date Sat, 03 Sep 2005 16:25:24 GMT
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=36488>.
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=36488

           Summary: PropertiesConfiguration doesn't throw exception when
                    path is directory
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: moran@place-base.com


When I use a string which is a directory to create a PropertiesConfiguration, no
exception is thrown.  However, the configuration is unusable as it has no
properties.

For example, I do

<code>
PropertiesConfiguration temp = 
	new PropertiesConfiguration("c:/baddirectory");
</code>

I get the expected

<code>
org.apache.commons.configuration.ConfigurationException: Cannot locate 
configuration source baddirectory 
</code>

However, when I do

PropertiesConfiguration temp2 = new 
PropertiesConfiguration("c:/windows");

I don't get any exception.  The difference between "baddirectory" and "windows"
is that the former doesn't exist and the latter does.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message