mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8220095: Assertion failure when symlink (with different name) is used for lib/modules file
Removed confusing function ClassLoader::is_modules_image(char*) Reviewed-by: lfoltan, ccheung
This commit is contained in:
parent
26210b4566
commit
223e1c6e42
7 changed files with 111 additions and 15 deletions
|
@ -114,6 +114,7 @@ class ClassPathImageEntry: public ClassPathEntry {
|
|||
private:
|
||||
JImageFile* _jimage;
|
||||
const char* _name;
|
||||
DEBUG_ONLY(static ClassPathImageEntry* _singleton;)
|
||||
public:
|
||||
bool is_modules_image() const;
|
||||
bool is_jar_file() const { return false; }
|
||||
|
@ -439,8 +440,6 @@ class ClassLoader: AllStatic {
|
|||
// distinguish from a class_name with no package name, as both cases have a NULL return value
|
||||
static const char* package_from_name(const char* const class_name, bool* bad_class_name = NULL);
|
||||
|
||||
static bool is_modules_image(const char* name) { return string_ends_with(name, MODULES_IMAGE_NAME); }
|
||||
|
||||
// Debugging
|
||||
static void verify() PRODUCT_RETURN;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue