Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ public class URLJarCollector {
jarFileURL = jarURLConnection.getDeclaredField("jarFileURL");
jarFileURL.setAccessible(true);

localSunJVM = true;
} catch (ClassNotFoundException | NoSuchFieldException | IllegalAccessException ignore) {
localSunJVM = (fileCache != null && urlCache != null);
} catch (ClassNotFoundException | NoSuchFieldException | IllegalAccessException | RuntimeException ignore) {
// Not a classic SUN/Oracle JVM layout: fall back to the non-caching path.
}
sunJVM = localSunJVM;

Expand Down