Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8347985: Deprecate java.management Permission classes for removal #23178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 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
Expand Down Expand Up @@ -31,6 +31,7 @@
* @apiNote
* This permission cannot be used for controlling access to resources
* as the Security Manager is no longer supported.
* Consequently this class is deprecated for removal in a future release.
*
* @author Mandy Chung
* @since 1.5
Expand All @@ -41,8 +42,11 @@
* @see java.security.PermissionCollection
* @see java.lang.SecurityManager
*
* @deprecated This class was only useful in conjunction with the Security Manager,
* which is no longer supported. There is no replacement for this class.
*
*/

@Deprecated(since="25", forRemoval=true)
public final class ManagementPermission extends java.security.BasicPermission {
private static final long serialVersionUID = 1897496590799378737L;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
Expand Down Expand Up @@ -161,9 +161,14 @@
* @apiNote
* This permission cannot be used for controlling access to resources
* as the Security Manager is no longer supported.
* Consequently this class is deprecated for removal in a future release.
*
* @deprecated This class was only useful in conjunction with the Security Manager,
* which is no longer supported. There is no replacement for this class.
*
* @since 1.5
*/
@Deprecated(since="25", forRemoval=true)
public class MBeanPermission extends Permission {

private static final long serialVersionUID = -2416928705275160661L;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 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
Expand Down Expand Up @@ -67,9 +67,14 @@
* @apiNote
* This permission cannot be used for controlling access to resources
* as the Security Manager is no longer supported.
* Consequently this class is deprecated for removal in a future release.
*
* @deprecated This class was only useful in conjunction with the Security Manager,
* which is no longer supported. There is no replacement for this class.
*
* @since 1.5
*/
@Deprecated(since="25", forRemoval=true)
public class MBeanServerPermission extends BasicPermission {
private static final long serialVersionUID = -5661980843569388590L;

Expand Down Expand Up @@ -334,6 +339,7 @@ public PermissionCollection newPermissionCollection() {
* implementation from defining a PermissionCollection there with an
* optimized "implies" method.
*/
@SuppressWarnings("removal")
class MBeanServerPermissionCollection extends PermissionCollection {
/** @serial Null if no permissions in collection, otherwise a
single permission that is the union of all permissions that
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
Expand Down Expand Up @@ -44,9 +44,14 @@
* @apiNote
* This permission cannot be used for controlling access to resources
* as the Security Manager is no longer supported.
* Consequently this class is deprecated for removal in a future release.
*
* @deprecated This class was only useful in conjunction with the Security Manager,
* which is no longer supported. There is no replacement for this class.
*
* @since 1.5
*/
@Deprecated(since="25", forRemoval=true)
public class MBeanTrustPermission extends BasicPermission {

private static final long serialVersionUID = -2952178077029018140L;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 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
Expand Down Expand Up @@ -56,9 +56,14 @@
* @apiNote
* This permission cannot be used for controlling access to resources
* as the Security Manager is no longer supported.
* Consequently this class is deprecated for removal in a future release.
*
* @deprecated This class was only useful in conjunction with the Security Manager,
* which is no longer supported. There is no replacement for this class.
*
* @since 1.5
*/
@Deprecated(since="25", forRemoval=true)
public final class SubjectDelegationPermission extends BasicPermission {

private static final long serialVersionUID = 1481618113008682343L;
Expand Down