Skip to content

Commit 0f46842

Browse files
committed
Adjusting test to JDK 23 ClassFile API.
1 parent 9f8a9db commit 0f46842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/langtools/tools/javac/modules/AnnotationsOnModules.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ public void testBrokenModuleInfoClassWithAnnotation(Path base) throws Exception
750750

751751
Path modifiedModuleInfo = libClasses.resolve("module-info.class");
752752
ClassModel cm1 = ClassFile.of().parse(modifiedModuleInfo);
753-
byte[] newBytes = ClassFile.of().transformClass(cm1, (builder, element) -> {
753+
byte[] newBytes = ClassFile.of().transform(cm1, (builder, element) -> {
754754
if (element instanceof ModuleAttribute attr) {
755755
List<ModuleRequireInfo> requires = new ArrayList<>();
756756

0 commit comments

Comments
 (0)