Skip to content

Commit 119899b

Browse files
committedJan 23, 2025
8345048: Remove the jmx.extend.open.types compatibility property
Reviewed-by: cjplummer, amenkov, sspitsyn
1 parent 89bfcb8 commit 119899b

File tree

1 file changed

+2
-5
lines changed
  • src/java.management/share/classes/javax/management/openmbean

1 file changed

+2
-5
lines changed
 

‎src/java.management/share/classes/javax/management/openmbean/OpenType.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -194,10 +194,7 @@ private void checkClassNameOverride() throws SecurityException {
194194
if (this.getClass().getClassLoader() == null)
195195
return; // We trust bootstrap classes.
196196
if (overridesGetClassName(this.getClass())) {
197-
if (System.getProperty("jmx.extend.open.types") == null) {
198-
throw new SecurityException("Cannot override getClassName() " +
199-
"unless -Djmx.extend.open.types");
200-
}
197+
throw new SecurityException("Cannot override getClassName()");
201198
}
202199
}
203200

0 commit comments

Comments
 (0)
Please sign in to comment.