< prev index next >

test/hotspot/jtreg/runtime/LoaderConstraints/vtableLdrConstraint/Test.java

Print this page




   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  */
  23 
  24 /*
  25  * @test
  26  * @bug 8186092
  27  * @compile ../common/Foo.java
  28  *          ../common/J.java
  29  *          I.java
  30  *          ../common/C.jasm
  31  *          Task.java
  32  *          ../common/PreemptingClassLoader.java
  33  * @run main/othervm Test
  34  */
  35 
  36 public class Test {
  37 
  38     static String expectedErrorMessage1 =
  39         "loader constraint violation for class test.Task: " +
  40         "when selecting overriding method test.Task.m()Ltest/Foo; " +
  41         "the class loader \"<unnamed>\" (instance of PreemptingClassLoader, " +
  42         "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " +
  43         "of the selected method's type test.Task, " +
  44         "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader) " +
  45         "for its super type test.J " +
  46         "have different Class objects for the type test.Foo used in the signature";




   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  */
  23 
  24 /*
  25  * @test
  26  * @bug 8186092 8199852
  27  * @compile ../common/Foo.java
  28  *          ../common/J.java
  29  *          I.java
  30  *          ../common/C.jasm
  31  *          Task.java
  32  *          ../common/PreemptingClassLoader.java
  33  * @run main/othervm Test
  34  */
  35 
  36 public class Test {
  37 
  38     static String expectedErrorMessage1 =
  39         "loader constraint violation for class test.Task: " +
  40         "when selecting overriding method test.Task.m()Ltest/Foo; " +
  41         "the class loader \"<unnamed>\" (instance of PreemptingClassLoader, " +
  42         "child of \"app\" jdk.internal.loader.ClassLoaders$AppClassLoader) " +
  43         "of the selected method's type test.Task, " +
  44         "and the class loader \"app\" (instance of jdk.internal.loader.ClassLoaders$AppClassLoader) " +
  45         "for its super type test.J " +
  46         "have different Class objects for the type test.Foo used in the signature";


< prev index next >