mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-21 15:55:15 +00:00
8170827: Correct errant "java.base" string to macro
Used JAVA_BASE_NAME instead of "java.base" string in one location Reviewed-by: coleenp, jiangli
This commit is contained in:
parent
c95329970d
commit
3cfbc5a630
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,6 +25,7 @@
|
||||
#include "precompiled.hpp"
|
||||
#include "classfile/classLoader.hpp"
|
||||
#include "classfile/javaClasses.hpp"
|
||||
#include "classfile/moduleEntry.hpp"
|
||||
#include "classfile/systemDictionary.hpp"
|
||||
#include "classfile/vmSymbols.hpp"
|
||||
#include "code/codeCache.hpp"
|
||||
@ -1229,7 +1230,7 @@ bool os::set_boot_path(char fileSep, char pathSep) {
|
||||
FREE_C_HEAP_ARRAY(char, jimage);
|
||||
|
||||
// check if developer build with exploded modules
|
||||
char* base_classes = format_boot_path("%/modules/java.base", home, home_len, fileSep, pathSep);
|
||||
char* base_classes = format_boot_path("%/modules/" JAVA_BASE_NAME, home, home_len, fileSep, pathSep);
|
||||
if (base_classes == NULL) return false;
|
||||
if (os::stat(base_classes, &st) == 0) {
|
||||
Arguments::set_sysclasspath(base_classes, false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user