cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@d-haven.org>
Subject FYI New Exception thrown (was Re: svn commit: r292770 - in /cocoon/trunk/src/java/org/apache/cocoon/i18n: XMLResourceBundleFactory.java XMLResourceBundleNotFoundException.java)
Date Fri, 30 Sep 2005 15:33:22 GMT
FYI:

I changed the "FIXME" comment that had a question with a runtime 
exception.  This should answer the question quite well.  Before we 
simply ignored XMLBundles with no base URL--now we force the system to 
deal with it.  It should also help tighten up some code.

bloritsch@apache.org wrote:

>@@ -371,10 +370,11 @@
>     protected String getFileName(String base, String name, Locale locale) {
>         StringBuffer sb = new StringBuffer();
>         if (base == null || base.length() == 0) {
>-            // FIXME (SW): can this happen?
>+            throw new IllegalArgumentException("'base' cannot be empty or null.");
>  
>



Mime
View raw message