Skip to content

Commit cb751bb

Browse files
authored
Merge pull request #919 from AdoptOpenJDK/fix_duplicte_resources_in_extension
OWS-610 : fix same resource found twice with jnlp extension
2 parents 70baee5 + b4cbe34 commit cb751bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/net/sourceforge/jnlp/runtime/classloader/JNLPClassLoader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ private static JNLPClassLoader getInstance(final URL location, final String uniq
550550
* Load the extensions specified in the JNLP file.
551551
*/
552552
private void initializeExtensions() {
553+
LOG.debug("initializeExtensions");
553554
final List<Exception> exceptions = new ArrayList<>();
554555
final List<JNLPClassLoader> loaderList = new ArrayList<>();
555556
loaderList.add(this);
@@ -1705,7 +1706,7 @@ public Enumeration<URL> findResources(String name) throws IOException {
17051706
* Find the resources in this, the parent, or the extension class loaders.
17061707
*/
17071708
private Enumeration<URL> findResourcesBySearching(String name) throws IOException {
1708-
List<URL> lresources = new ArrayList<>();
1709+
Set<URL> lresources = new HashSet<>();
17091710
Enumeration<URL> e = null;
17101711

17111712
for (JNLPClassLoader loader : loaders) {

0 commit comments

Comments
 (0)