commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r912394 - in /commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang: enum/Enum.java enums/Enum.java
Date Sun, 21 Feb 2010 20:16:23 GMT
Author: niallp
Date: Sun Feb 21 20:16:22 2010
New Revision: 912394

URL: http://svn.apache.org/viewvc?rev=912394&view=rev
Log:
LANG-76 catch Exception instead of Throwable - thanks to Sebb

Modified:
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enum/Enum.java
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enums/Enum.java

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enum/Enum.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enum/Enum.java?rev=912394&r1=912393&r2=912394&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enum/Enum.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enum/Enum.java
Sun Feb 21 20:16:22 2010
@@ -490,7 +490,7 @@
                 // LANG-76 - try to force class initialization for JDK 1.5+
                 Class.forName(enumClass.getName(), true, enumClass.getClassLoader());
                 entry = (Entry) cEnumClasses.get(enumClass);
-            } catch (Throwable t) {
+            } catch (Exception e) {
                 // Ignore
             }
         }

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enums/Enum.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enums/Enum.java?rev=912394&r1=912393&r2=912394&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enums/Enum.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/enums/Enum.java
Sun Feb 21 20:16:22 2010
@@ -536,7 +536,7 @@
                 // LANG-76 - try to force class initialization for JDK 1.5+
                 Class.forName(enumClass.getName(), true, enumClass.getClassLoader());
                 entry = (Entry) cEnumClasses.get(enumClass);
-            } catch (Throwable t) {
+            } catch (Exception e) {
                 // Ignore
             }
         }



Mime
View raw message