The VM option -XX:AllowRedefinitionToAddDeleteMethods was added in JDK 13 as a 
temporary backward compatibility flag under JDK-8192936 and was immediately 
marked as Deprecate. The fix is to obsolete this option in JDK 26 and expire in 
JDK 27.

There are two concerns which may require some negotiation with the Runtime 
(@coleenp @dcubed-ojdk @dholmes-ora) and SQE (@lmesnik) teams:
 - Class redefinition/retransformation can impact lambda expressions which are 
supported with private methods
 - Many tests depend on this VM option and are being removed. I'm not sure if 
it is okay to completely remove those e may want another way to handle this 
(e.g. problem-listing the impacted tests for now).
 
Testing:
 - mach5 tiers 1-6 are good
 - may need to run mach5 tiers > 6

-------------

Commit messages:
 - 8358890: VM option -XX:AllowRedefinitionToAddDeleteMethods should be 
obsoleted then expired

Changes: https://git.openjdk.org/jdk/pull/26232/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26232&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358890
  Stats: 1851 lines in 36 files changed: 0 ins; 1825 del; 26 mod
  Patch: https://git.openjdk.org/jdk/pull/26232.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26232/head:pull/26232

PR: https://git.openjdk.org/jdk/pull/26232

Reply via email to