db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1580845 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FileUtil.java
Date Mon, 24 Mar 2014 13:32:04 GMT
Author: kahatlen
Date: Mon Mar 24 13:32:04 2014
New Revision: 1580845

URL: http://svn.apache.org/r1580845
Log:
DERBY-6503: Ignore LinkageErrors when loading FilePermissionServiceImpl

When attempting to load the class on Java 6, an
UnsupportedClassVersionError is (correctly) raised, but it is not
among the exceptions that are caught and ignored. Add a catch clause
for its superclass LinkageError to handle it.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FileUtil.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FileUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FileUtil.java?rev=1580845&r1=1580844&r2=1580845&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FileUtil.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FileUtil.java Mon Mar
24 13:32:04 2014
@@ -473,6 +473,7 @@ public abstract class FileUtil {
         } catch (ClassNotFoundException ex) {
         } catch (InstantiationException ex) {
         } catch (IllegalAccessException ex) {
+        } catch (LinkageError e) {
         }
 
         // Could not create an instance. This most likely means we are



Mime
View raw message