File tree 1 file changed +2
-5
lines changed
src/java.management/share/classes/javax/management/openmbean
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -194,10 +194,7 @@ private void checkClassNameOverride() throws SecurityException {
194
194
if (this .getClass ().getClassLoader () == null )
195
195
return ; // We trust bootstrap classes.
196
196
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()" );
201
198
}
202
199
}
203
200
You can’t perform that action at this time.
0 commit comments