You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by je...@apache.org on 2018/08/13 22:03:09 UTC

[geode] branch develop updated: GEODE-5212: Resources must be given with '/' in the path regardless o… (#2312)

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

jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 18c3aee  GEODE-5212: Resources must be given with '/' in the path regardless o… (#2312)
18c3aee is described below

commit 18c3aee4b9e0a0edd1b02f32add16d2abcc71f4f
Author: Jens Deppe <jd...@pivotal.io>
AuthorDate: Mon Aug 13 15:03:03 2018 -0700

    GEODE-5212: Resources must be given with '/' in the path regardless o… (#2312)
---
 .../src/main/java/org/apache/geode/pdx/NonDelegatingLoader.java        | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/geode-junit/src/main/java/org/apache/geode/pdx/NonDelegatingLoader.java b/geode-junit/src/main/java/org/apache/geode/pdx/NonDelegatingLoader.java
index 7a8ab47..8213fcf 100644
--- a/geode-junit/src/main/java/org/apache/geode/pdx/NonDelegatingLoader.java
+++ b/geode-junit/src/main/java/org/apache/geode/pdx/NonDelegatingLoader.java
@@ -14,7 +14,6 @@
  */
 package org.apache.geode.pdx;
 
-import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.URL;
@@ -34,7 +33,7 @@ class NonDelegatingLoader extends ClassLoader {
     if (!name.contains("SeparateClassloaderPdx")) {
       return super.loadClass(name, resolve);
     }
-    URL url = super.getResource(name.replace('.', File.separatorChar) + ".class");
+    URL url = super.getResource(name.replace('.', '/') + ".class");
     if (url == null) {
       throw new ClassNotFoundException();
     }