Skip to content

Commit

Permalink
PAYARA-1537 Fixed locating resource in class loader (payara#1568)
Browse files Browse the repository at this point in the history
* PAYARA-1537 Fixed locating resource in class loader

* PAYARA-1537 Updated copyright
  • Loading branch information
arjantijms authored and lprimak committed Jul 5, 2017
1 parent 0750302 commit 331be21
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2016-2017] [Payara Foundation and/or its affiliates]

package org.glassfish.web.deployment.annotation.impl;

Expand Down Expand Up @@ -190,10 +191,7 @@ private void scanXmlDefinedClassesIfNecessary(
}

private boolean isScan(String className, ClassLoader commonCL) throws IOException {
boolean result = false;
//XXX TBD ignore delegate in sun-web.xml in this moment
String resourceName = "/" + className.replace(".", "/") + ".class";
return (commonCL.getResource(resourceName) != null);
return commonCL.getResource(className.replace(".", "/") + ".class") != null;
}
}

0 comments on commit 331be21

Please sign in to comment.