< prev index next >

test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceSuccessTest.java

Print this page
rev 50604 : imported patch jep181-rev1


 119                         Template.OverrideAbstractExpectedIface,
 120                         Template.MethodrefEqualsExpected,
 121                         Template.IgnoredAbstract,
 122                         Template.CallsiteUnrelatedToMethodref,
 123                         Template.IfaceMethodrefSelection,
 124                         Template.SelectionOverrideAbstract),
 125                 /* Group 45: callsite unrelated to methodref, methodref != expected */
 126                 new TestGroup.Simple(initBuilder,
 127                         Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
 128                                              EnumSet.of(MethodData.Access.PUBLIC),
 129                                              EnumSet.of(MethodData.Context.INSTANCE,
 130                                                         MethodData.Context.ABSTRACT),
 131                                              EnumSet.of(ClassData.Package.SAME,
 132                                                         ClassData.Package.DIFFERENT)),
 133                         Template.OverrideAbstractExpectedIface,
 134                         Template.IfaceMethodrefNotEqualsExpected,
 135                         Template.IgnoredAbstract,
 136                         Template.CallsiteUnrelatedToMethodref,
 137                         Template.IfaceMethodrefSelection,
 138                         Template.SelectionOverrideAbstract)














 139             );
 140 
 141     private InvokeInterfaceSuccessTest() {
 142         super(testgroups);
 143     }
 144 
 145     public static void main(final String... args) {
 146         new InvokeInterfaceSuccessTest().run();
 147     }
 148 }


 119                         Template.OverrideAbstractExpectedIface,
 120                         Template.MethodrefEqualsExpected,
 121                         Template.IgnoredAbstract,
 122                         Template.CallsiteUnrelatedToMethodref,
 123                         Template.IfaceMethodrefSelection,
 124                         Template.SelectionOverrideAbstract),
 125                 /* Group 45: callsite unrelated to methodref, methodref != expected */
 126                 new TestGroup.Simple(initBuilder,
 127                         Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
 128                                              EnumSet.of(MethodData.Access.PUBLIC),
 129                                              EnumSet.of(MethodData.Context.INSTANCE,
 130                                                         MethodData.Context.ABSTRACT),
 131                                              EnumSet.of(ClassData.Package.SAME,
 132                                                         ClassData.Package.DIFFERENT)),
 133                         Template.OverrideAbstractExpectedIface,
 134                         Template.IfaceMethodrefNotEqualsExpected,
 135                         Template.IgnoredAbstract,
 136                         Template.CallsiteUnrelatedToMethodref,
 137                         Template.IfaceMethodrefSelection,
 138                         Template.SelectionOverrideAbstract)
 139                 /*                ,
 140                 // Group 175: private method in interface [was ICCE case up to JDK 11]
 141                 // Can't get this to work for some reason.
 142                 new TestGroup.Simple(initBuilder,
 143                         Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
 144                                              EnumSet.of(MethodData.Access.PRIVATE),
 145                                              EnumSet.of(MethodData.Context.INSTANCE),
 146                                              EnumSet.of(ClassData.Package.SAME)),
 147                         Template.OverrideAbstractExpectedIface,
 148                         Template.MethodrefEqualsExpected,
 149                         Template.IgnoredAbstract,
 150                         Template.CallsiteEqualsMethodref,
 151                         Template.IfaceMethodrefSelection)
 152                 */
 153             );
 154 
 155     private InvokeInterfaceSuccessTest() {
 156         super(testgroups);
 157     }
 158 
 159     public static void main(final String... args) {
 160         new InvokeInterfaceSuccessTest().run();
 161     }
 162 }
< prev index next >