JDK-8358890 : VM option -XX:AllowRedefinitionToAddOrDeleteMethods should be obsoleted then expired
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 26
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2025-06-09
  • Updated: 2025-06-09
Related Reports
Relates :  
Description
The VM option -XX:AllowRedefinitionToAddOrDeleteMethods was added in JDK 13 as a temporary backward compatibility flag under JDK-8192936 and was immediately marked as Deprecated. From the CSR (JDK-8221528):

> This option is deprecated right away. The plan is to keep it for a couple of releases to allow customers (tool vendors) to remove dependency on old behavior from their tools.

We are well past "a couple of releases" now so this option should be obsoleted in JDK 26 and expired in JDK 27.