mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8345048: Remove the jmx.extend.open.types compatibility property
Reviewed-by: cjplummer, amenkov, sspitsyn
This commit is contained in:
parent
89bfcb8db0
commit
119899bc69
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2025, 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
|
||||
@ -194,10 +194,7 @@ public abstract class OpenType<T> implements Serializable {
|
||||
if (this.getClass().getClassLoader() == null)
|
||||
return; // We trust bootstrap classes.
|
||||
if (overridesGetClassName(this.getClass())) {
|
||||
if (System.getProperty("jmx.extend.open.types") == null) {
|
||||
throw new SecurityException("Cannot override getClassName() " +
|
||||
"unless -Djmx.extend.open.types");
|
||||
}
|
||||
throw new SecurityException("Cannot override getClassName()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user