The problem is RedefineClasses does not update cached_class_bytes, so subsequent RetransformClasses gets obsolete class bytes (this are testcases 3-6 from the new test)
------------- Commit messages: - one more tab - tabs - Fixed cached_class_file Changes: https://git.openjdk.org/jdk/pull/10032/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10032&range=00 Issue: https://bugs.openjdk.org/browse/JDK-7124710 Stats: 555 lines in 4 files changed: 539 ins; 8 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/10032.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10032/head:pull/10032 PR: https://git.openjdk.org/jdk/pull/10032