Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEODE-2227] AutoSerializableJUnitTest.testMultipleClassLoaders fails on Windows #330

Closed
wants to merge 2 commits into from
Closed

Conversation

vectorijk
Copy link
Contributor

Parsing the path of classes is not correctly on Windows. The path of library classes on Windows is split by semicolon instead of colon.

AutoSerializableJUnitTest.testMultipleClassLoaders fails on Windows
@@ -1291,7 +1289,8 @@ public void testMultipleClassLoaders() throws Exception {
List<URL> urls = new ArrayList<URL>();
String classPathStr = System.getProperty("java.class.path");
if (classPathStr != null) {
String[] cpList = classPathStr.split(":");
String[] cpList =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid the ternary operator by using System.getProperty("path.separator").

@vectorijk
Copy link
Contributor Author

@metatype I have addressed that.

@asfgit asfgit closed this in 7b5e2cc Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants