From 3ac9678ea1078087f047cb31fb705d94de3f690e Mon Sep 17 00:00:00 2001 From: Kevin Walls Date: Tue, 25 Mar 2025 12:32:37 +0000 Subject: [PATCH] 8351224: Deprecate com.sun.tools.attach.AttachPermission for removal Reviewed-by: sspitsyn --- .../classes/com/sun/tools/attach/AttachPermission.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jdk.attach/share/classes/com/sun/tools/attach/AttachPermission.java b/src/jdk.attach/share/classes/com/sun/tools/attach/AttachPermission.java index a69742e27c0..905b12bf21f 100644 --- a/src/jdk.attach/share/classes/com/sun/tools/attach/AttachPermission.java +++ b/src/jdk.attach/share/classes/com/sun/tools/attach/AttachPermission.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 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 @@ -33,12 +33,17 @@ package com.sun.tools.attach; * @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. * * @see com.sun.tools.attach.VirtualMachine * @see com.sun.tools.attach.spi.AttachProvider * @since 1.6 + * + * @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 AttachPermission extends java.security.BasicPermission { /** use serialVersionUID for interoperability */