RFR: 8332109: Convert remaining tests using com.sun.tools.classfile to ClassFile API
Chen Liang
liach at openjdk.org
Sun May 12 08:43:24 UTC 2024
Some tests are not migrated to the ClassFile API in previous migrations.
- Some are simple oversights that didn't remove usages of com.sun.tools.classfile;
- The CallerSensitive ones used an old utility, replaced by CF API-based new code;
- many in javac are because the files are compiled with older source compatibility. Those patches are converted to have the source code stored in text blocks and compiled within tests using `ToolBox#writeJavaFiles` and `CompilerUtils.compile`;
- As described in the JBS issue, there are a few other tests not covered; one is in #19193 while the others are blocked by CreateSymbols migration or bugs.
Testing: all modified tests pass.
-------------
Commit messages:
- Missing copyright years
- 8332109: Convert remaining tests using com.sun.tools.classfile to ClassFile API
Changes: https://git.openjdk.org/jdk/pull/19206/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19206&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8332109
Stats: 1539 lines in 19 files changed: 224 ins; 1098 del; 217 mod
Patch: https://git.openjdk.org/jdk/pull/19206.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19206/head:pull/19206
PR: https://git.openjdk.org/jdk/pull/19206
More information about the compiler-dev
mailing list