Skip to content

Commit 997aa17

Browse files
committed
8351310: Deprecate com.sun.jdi.JDIPermission for removal
Reviewed-by: sspitsyn, cjplummer
1 parent c953e0e commit 997aa17

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/jdk.jdi/share/classes/com/sun/jdi/JDIPermission.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -33,6 +33,7 @@
3333
* @apiNote
3434
* This permission cannot be used for controlling access to resources
3535
* as the Security Manager is no longer supported.
36+
* Consequently this class is deprecated for removal in a future release.
3637
*
3738
* @author Tim Bell
3839
* @since 1.5
@@ -44,8 +45,11 @@
4445
* @see java.security.PermissionCollection
4546
* @see java.lang.SecurityManager
4647
*
48+
* @deprecated This class was only useful in conjunction with the Security Manager,
49+
* which is no longer supported. There is no replacement for this class.
4750
*/
4851

52+
@Deprecated(since="25", forRemoval=true)
4953
public final class JDIPermission extends java.security.BasicPermission {
5054

5155
private static final long serialVersionUID = -6988461416938786271L;

src/jdk.jdi/share/classes/com/sun/tools/jdi/VirtualMachineManagerImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 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
@@ -33,7 +33,6 @@
3333
import java.util.ResourceBundle;
3434
import java.util.ServiceLoader;
3535

36-
import com.sun.jdi.JDIPermission;
3736
import com.sun.jdi.VMDisconnectedException;
3837
import com.sun.jdi.VirtualMachine;
3938
import com.sun.jdi.VirtualMachineManager;

0 commit comments

Comments
 (0)