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

8225093: Special property jdk.boot.class.path.append should not default to empty string #6868

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@

/**
* @test
* @bug 8224791
* @bug 8225093
* @summary Check that JVMTI GetSystemProperty API returns the right values for
* property jdk.boot.class.path.append.
* @requires vm.jvmti
@@ -37,16 +37,16 @@ public class GetBootClassPathAppendProp {
private static native String getSystemProperty();

public static void main(String[] args) throws Exception {
String vm_info_jvmti = getSystemProperty();
String path = getSystemProperty();
if (args.length > 0) {
if (!vm_info_jvmti.equals("blah")) {
if (!path.equals("blah")) {
throw new RuntimeException("Wrong value returned for jdk.boot.class.path.append: " +
vm_info_jvmti);
path);
}
} else {
if (vm_info_jvmti != null) {
if (path != null) {
throw new RuntimeException("Null value expected for jdk.boot.class.path.append: " +
vm_info_jvmti);
path);
}
}
}