JDK-8351224 : Deprecate com.sun.tools.attach.AttachPermission for removal
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-03-04
  • Updated: 2025-07-02
  • Resolved: 2025-03-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b16Fixed
Related Reports
CSR :  
Relates :  
Description
Following on from JEP 486 (Permanently Disable the Security Manager), there are Permission classes which are unused. These should be deprecated, for removal in future.

In jdk.attach, the permission class share/classes/com/sun/tools/attach/AttachPermission.java is not used and should be deprecated for removal.

Other mentions:

src/jdk.compiler/share/data/symbols/jdk.attach-9.sym.txt
53:class name com/sun/tools/attach/AttachPermission

src/jdk.compiler/share/data/symbols/jdk.attach-M.sym.txt
44:class name com/sun/tools/attach/AttachPermission

src/jdk.compiler/share/data/symbols/jdk.attach-B.sym.txt
44:class name com/sun/tools/attach/AttachPermission

src/jdk.compiler/share/data/symbols/jdk.attach-G.sym.txt
41:class name com/sun/tools/attach/AttachPermission
Comments
Changeset: 3ac9678e Branch: master Author: Kevin Walls <kevinw@openjdk.org> Date: 2025-03-25 12:32:37 +0000 URL: https://git.openjdk.org/jdk/commit/3ac9678ea1078087f047cb31fb705d94de3f690e
25-03-2025

Thanks, changed to core-svc / tools which matches other Attach API changes I see.
20-03-2025

A question: is this component/sub-component right?
20-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24133 Date: 2025-03-20 14:27:05 +0000
20-03-2025