Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OWS-610 : fix same resource found twice with jnlp extension #919

Merged
merged 1 commit into from Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -550,6 +550,7 @@ private static JNLPClassLoader getInstance(final URL location, final String uniq
* Load the extensions specified in the JNLP file.
*/
private void initializeExtensions() {
LOG.debug("initializeExtensions");
final List<Exception> exceptions = new ArrayList<>();
final List<JNLPClassLoader> loaderList = new ArrayList<>();
loaderList.add(this);
Expand Down Expand Up @@ -1705,7 +1706,7 @@ public Enumeration<URL> findResources(String name) throws IOException {
* Find the resources in this, the parent, or the extension class loaders.
*/
private Enumeration<URL> findResourcesBySearching(String name) throws IOException {
List<URL> lresources = new ArrayList<>();
Set<URL> lresources = new HashSet<>();
Enumeration<URL> e = null;

for (JNLPClassLoader loader : loaders) {
Expand Down