< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 136                                              EnumSet.of(MethodData.Context.INSTANCE),
 137                                              EnumSet.of(ClassData.Package.SAME,
 138                                                         ClassData.Package.DIFFERENT)),
 139                         Template.OverrideAbstractExpectedIface,
 140                         Template.IfaceMethodrefAmbiguous,
 141                         Template.IgnoredAbstract,
 142                         Template.AllCallsiteCases,
 143                         Template.IfaceMethodrefSelectionNoOverride),
 144                 /* Group 174: ambiguous selection */
 145                 new TestGroup.Simple(initBuilder,
 146                         Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE),
 147                         Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
 148                                              EnumSet.of(MethodData.Access.PUBLIC),
 149                                              EnumSet.of(MethodData.Context.INSTANCE),
 150                                              EnumSet.of(ClassData.Package.SAME,
 151                                                         ClassData.Package.DIFFERENT)),
 152                         Template.OverrideAbstractExpectedIface,
 153                         Template.IfaceMethodrefNotEqualsExpected,
 154                         Template.IgnoredAbstract,
 155                         Template.AllCallsiteCases,
 156                         Template.IfaceMethodrefAmbiguousResolvedIsIface),
 157 
 158                 /* Group 175: private method in interface */
 159                 new TestGroup.Simple(initBuilder,
 160                         Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE),
 161                         Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
 162                                              EnumSet.of(MethodData.Access.PRIVATE),
 163                                              EnumSet.of(MethodData.Context.INSTANCE),
 164                                              EnumSet.of(ClassData.Package.SAME)),
 165                         Template.OverrideAbstractExpectedIface,
 166                         Template.MethodrefEqualsExpected,
 167                         Template.IgnoredAbstract,
 168                         Template.CallsiteEqualsMethodref,
 169                         Template.IfaceMethodrefSelection)
 170             );
 171 
 172     private InvokeInterfaceICCE() {
 173         super(testgroups);
 174     }
 175 
 176     public static void main(final String... args) {
 177         new InvokeInterfaceICCE().run();
 178     }
 179 }
   1 /*
   2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 136                                              EnumSet.of(MethodData.Context.INSTANCE),
 137                                              EnumSet.of(ClassData.Package.SAME,
 138                                                         ClassData.Package.DIFFERENT)),
 139                         Template.OverrideAbstractExpectedIface,
 140                         Template.IfaceMethodrefAmbiguous,
 141                         Template.IgnoredAbstract,
 142                         Template.AllCallsiteCases,
 143                         Template.IfaceMethodrefSelectionNoOverride),
 144                 /* Group 174: ambiguous selection */
 145                 new TestGroup.Simple(initBuilder,
 146                         Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE),
 147                         Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
 148                                              EnumSet.of(MethodData.Access.PUBLIC),
 149                                              EnumSet.of(MethodData.Context.INSTANCE),
 150                                              EnumSet.of(ClassData.Package.SAME,
 151                                                         ClassData.Package.DIFFERENT)),
 152                         Template.OverrideAbstractExpectedIface,
 153                         Template.IfaceMethodrefNotEqualsExpected,
 154                         Template.IgnoredAbstract,
 155                         Template.AllCallsiteCases,
 156                         Template.IfaceMethodrefAmbiguousResolvedIsIface)













 157             );
 158 
 159     private InvokeInterfaceICCE() {
 160         super(testgroups);
 161     }
 162 
 163     public static void main(final String... args) {
 164         new InvokeInterfaceICCE().run();
 165     }
 166 }
< prev index next >