This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag 
org.apache.sling.testing.sling-mock-oak-1.0.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock-oak.git

commit 4c2c44271fb42e1c49635910338fe63e18b15cfc
Author: Stefan Seifert <[email protected]>
AuthorDate: Mon Oct 5 12:55:20 2015 +0000

    SLING-5088 do not use ReflectiveOperationException which is a JDK 1.7 class
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock-oak@1706830
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
 
b/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
index fdcecb1..1bee5d8 100644
--- 
a/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
+++ 
b/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java
@@ -78,8 +78,8 @@ public final class OakMockSlingRepository implements 
SlingRepository {
             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);
         }
     }
 

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to