You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2006/08/15 09:15:14 UTC

Re: svn commit: r431178 - /lenya/trunk/src/modules-core/properties/java/src/org/apache/lenya/cms/cocoon/components/modules/input/PropertiesModule.java

Thorsten Scherler wrote:

[...]

>>
>>>              filteringProperties = loadXMLPropertiesFromURI(filteringProperties,
>>>                      lenyaPropertiesStringURI);
>>> -        } catch (FileNotFoundException e) {
>>> -            if (debugging())
>>> -                debug("Unable to find local.lenya.properties.xml, ignoring.");
>>> -        }
>> Is this intended? 
> 
> Yes.
> 
>> IIUC the Exception is just swallowed in non-debug mode.
>> That looks like exception handling for flow control, which is a Bad Thing.
>> Shouldn't we check if the file exists instead?
> 
> See loadXMLPropertiesFromURI(...) there is a source.exist() that is why
> FileNotFoundException will not appear anymore. Since they do not appear
> it does not make sense to catch them (that is why I removed them).

I guess it was too early in the morning, I didn't pay attention to the - signs.
Sorry ...

> Why do you think we should keep it? 
> 
> Why was it there before?
> http://svn.apache.org/viewvc?rev=428447&view=rev
> 
> I agree with your opinion that is why I opened
> https://issues.apache.org/jira/browse/FOR-914 a week ago.

That's very good to know :)

-- Andreas


-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org