Skip to content

Commit

Permalink
Merge pull request #919 from AdoptOpenJDK/fix_duplicte_resources_in_e…
Browse files Browse the repository at this point in the history
…xtension

OWS-610 : fix same resource found twice with jnlp extension
  • Loading branch information
janakmulani authored Oct 17, 2023
2 parents 70baee5 + b4cbe34 commit cb751bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
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

0 comments on commit cb751bb

Please sign in to comment.