This is an automated email from the ASF dual-hosted git repository.

gaurava pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 86ac1ad9e57 YARN-10978. Fix ApplicationClassLoader to Correctly Expand 
Glob for Windows Path (#3558)
86ac1ad9e57 is described below

commit 86ac1ad9e573f8f42737a9260f4bc9878e20448d
Author: Akshat Bordia <31816865+aksha...@users.noreply.github.com>
AuthorDate: Tue Dec 6 16:39:49 2022 +0530

    YARN-10978. Fix ApplicationClassLoader to Correctly Expand Glob for Windows 
Path (#3558)
---
 .../src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java
index 972bbff4cfd..4e8a9c9b275 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java
@@ -108,7 +108,7 @@ public class ApplicationClassLoader extends URLClassLoader {
       throws MalformedURLException {
     List<URL> urls = new ArrayList<URL>();
     for (String element : classpath.split(File.pathSeparator)) {
-      if (element.endsWith("/*")) {
+      if (element.endsWith(File.separator + "*")) {
         List<Path> jars = FileUtil.getJarsInDirectory(element);
         if (!jars.isEmpty()) {
           for (Path jar: jars) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to