Author: ggregory
Date: Sat Jul 28 16:02:31 2018
New Revision: 1836933

URL: http://svn.apache.org/viewvc?rev=1836933&view=rev
Log:
[BCEL-305] ClassPath.getClassFile() and friends do not work with JRE 9 and 
higher. Fix close.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java

Modified: 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java
URL: 
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java?rev=1836933&r1=1836932&r2=1836933&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java 
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java 
Sat Jul 28 16:02:31 2018
@@ -394,12 +394,12 @@ public class ClassPath implements Closea
                 for (final JrtModule module : modules) {
                     module.close();
                 }
-                if (classLoader != null) {
-                    classLoader.close();
-                }
-                if (jrtFileSystem != null) {
-                    jrtFileSystem.close();
-                }
+            }
+            if (classLoader != null) {
+                classLoader.close();
+            }
+            if (jrtFileSystem != null) {
+                jrtFileSystem.close();
             }
         }
 


Reply via email to