Fxi https://issues.apache.org/bugzilla/show_bug.cgi?id=49128
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 Jul 2010 21:35:37 +0000 (21:35 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 Jul 2010 21:35:37 +0000 (21:35 +0000)
Don't swallow exceptions unnecessarily

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@964215 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/loader/WebappClassLoader.java
webapps/docs/changelog.xml

index 642ed04..85ccaab 100644 (file)
@@ -1811,7 +1811,7 @@ public class WebappClassLoader
         String encoding = null;
         try {
             encoding = System.getProperty("file.encoding");
-        } catch (Exception e) {
+        } catch (SecurityException e) {
             return;
         }
         if (encoding.indexOf("EBCDIC")!=-1) {
index 7b6723b..fb337fe 100644 (file)
         one of them fails, do not ignore the others. (markt/kkolinko)
       </fix>
       <fix>
+        <bug>49128</bug>: Don't swallow exceptions unnecessarily in
+        <code>WebappClassLoader.start()</code>. (markt)
+      </fix>
+      <fix>
         <bug>49182</bug>: Align comments in setclasspath.[sh|bat] with
         behaviour. Based on a patch provided by sebb. (markt)
       </fix>