test/hotspot/jtreg/runtime/LoaderConstraints/vtableLdrConstraint/Test.java
changeset 54432 532e88de77eb
parent 51097 bef02342d179
equal deleted inserted replaced
54431:ad9fa99fa48e 54432:532e88de77eb
    36 public class Test {
    36 public class Test {
    37 
    37 
    38     // Break expected error messages into 3 parts since the loader name includes its identity
    38     // Break expected error messages into 3 parts since the loader name includes its identity
    39     // hash which is unique and can't be compared against.
    39     // hash which is unique and can't be compared against.
    40     static String expectedErrorMessage1_part1 = "loader constraint violation for class test.Task: when " +
    40     static String expectedErrorMessage1_part1 = "loader constraint violation for class test.Task: when " +
    41                                                 "selecting overriding method test.Task.m()Ltest/Foo; the " +
    41                                                 "selecting overriding method 'test.Foo test.Task.m()' the " +
    42                                                 "class loader PreemptingClassLoader @";
    42                                                 "class loader PreemptingClassLoader @";
    43     static String expectedErrorMessage1_part2 = " of the selected method's type test.Task, and the class " +
    43     static String expectedErrorMessage1_part2 = " of the selected method's type test.Task, and the class " +
    44                                                 "loader 'app' for its super type test.J have different Class objects " +
    44                                                 "loader 'app' for its super type test.J have different Class objects " +
    45                                                 "for the type test.Foo used in the signature (test.Task is in unnamed " +
    45                                                 "for the type test.Foo used in the signature (test.Task is in unnamed " +
    46                                                 "module of loader PreemptingClassLoader @";
    46                                                 "module of loader PreemptingClassLoader @";
    47     static String expectedErrorMessage1_part3 = ", parent loader 'app'; test.J is in unnamed module of loader 'app')";
    47     static String expectedErrorMessage1_part3 = ", parent loader 'app'; test.J is in unnamed module of loader 'app')";
    48 
    48 
    49     static String expectedErrorMessage2_part1 = "loader constraint violation for class test.Task: when " +
    49     static String expectedErrorMessage2_part1 = "loader constraint violation for class test.Task: when " +
    50                                                 "selecting overriding method test.Task.m()Ltest/Foo; the " +
    50                                                 "selecting overriding method 'test.Foo test.Task.m()' the " +
    51                                                 "class loader 'VtableLdrCnstrnt_Test_Loader' @";
    51                                                 "class loader 'VtableLdrCnstrnt_Test_Loader' @";
    52     static String expectedErrorMessage2_part2 = " of the selected method's type test.Task, and the class " +
    52     static String expectedErrorMessage2_part2 = " of the selected method's type test.Task, and the class " +
    53                                                 "loader 'app' for its super type test.J have different Class objects " +
    53                                                 "loader 'app' for its super type test.J have different Class objects " +
    54                                                 "for the type test.Foo used in the signature (test.Task is in unnamed " +
    54                                                 "for the type test.Foo used in the signature (test.Task is in unnamed " +
    55                                                 "module of loader 'VtableLdrCnstrnt_Test_Loader' @";
    55                                                 "module of loader 'VtableLdrCnstrnt_Test_Loader' @";