sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sseif...@apache.org
Subject svn commit: r1706830 - /sling/trunk/testing/mocks/sling-mock-oak/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
Date Mon, 05 Oct 2015 12:55:20 GMT
Author: sseifert
Date: Mon Oct  5 12:55:20 2015
New Revision: 1706830

URL: http://svn.apache.org/viewvc?rev=1706830&view=rev
Log:
SLING-5088 do not use ReflectiveOperationException which is a JDK 1.7 class

Modified:
    sling/trunk/testing/mocks/sling-mock-oak/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java

Modified: sling/trunk/testing/mocks/sling-mock-oak/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
URL: http://svn.apache.org/viewvc/sling/trunk/testing/mocks/sling-mock-oak/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java?rev=1706830&r1=1706829&r2=1706830&view=diff
==============================================================================
--- sling/trunk/testing/mocks/sling-mock-oak/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
(original)
+++ sling/trunk/testing/mocks/sling-mock-oak/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
Mon Oct  5 12:55:20 2015
@@ -78,8 +78,8 @@ public final class OakMockSlingRepositor
             ExecutorService executor = (ExecutorService)executorField.get(this.oak);
             executor.shutdownNow();
         }
-        catch (ReflectiveOperationException ex) {
-            log.error("Memory leak: Unable to shutdown executor service from field '" + fieldName
+ "' in " + this.oak, ex);
+        catch (Throwable ex) {
+            log.error("Potential Memory leak: Unable to shutdown executor service from field
'" + fieldName + "' in " + this.oak, ex);
         }
     }
 



Mime
View raw message