RFR: 8304148: Remapping a class with Invokedynamic constant loses static bootstrap arguments
Adam Sotona
asotona at openjdk.org
Wed Mar 22 11:11:43 UTC 2023
On Tue, 14 Mar 2023 14:51:34 GMT, Thiago Henrique Hüpner <duke at openjdk.org> wrote:
> 8304148: Remapping a class with Invokedynamic constant loses static bootstrap arguments
Suggested patch to test the args lost:
diff --git a/test/jdk/jdk/classfile/AdvancedTransformationsTest.java b/test/jdk/jdk/classfile/AdvancedTransformationsTest.java
index 931b0825a7f..92354fe4bdf 100644
--- a/test/jdk/jdk/classfile/AdvancedTransformationsTest.java
+++ b/test/jdk/jdk/classfile/AdvancedTransformationsTest.java
@@ -211,6 +211,7 @@ class AdvancedTransformationsTest {
"INVOKESTATIC, owner: AdvancedTransformationsTest$Bar, method name: fooMethod, method type: (LAdvancedTransformationsTest$Bar;)LAdvancedTransformationsTest$Bar",
"method type: ()LAdvancedTransformationsTest$Bar;",
"GETFIELD, owner: AdvancedTransformationsTest$Rec, field name: foo, field type: LAdvancedTransformationsTest$Bar;");
+ assertFalse(out.contains("bootstrap method arguments indexes: []"), "bootstrap arguments lost");
}
private static void assertContains(String actual, String... expected) {
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13021#issuecomment-1479365706
More information about the core-libs-dev
mailing list