< prev index next >

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

Print this page




   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 /**
  26  * @test
  27  * @summary Test exception messages of LinkageError.



  28  * @library /test/lib
  29  * @compile D_ambgs.jasm
  30  * @run driver ClassFileInstaller test.D_ambgs
  31  * @compile  ../common/PreemptingClassLoader.java
  32  *           test/D_ambgs.java Test.java test/B.java
  33  * @run driver ClassFileInstaller test.B
  34  * @run main/othervm Test
  35  */
  36 
  37 import test.*;
  38 
  39 import java.io.ByteArrayOutputStream;
  40 import java.io.InputStream;
  41 
  42 import java.io.*;
  43 import java.nio.file.Files;
  44 import java.nio.file.Path;
  45 import java.nio.file.Paths;
  46 
  47 public class Test {




   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 /**
  26  * @test
  27  * @bug 8199852
  28  * @summary Test exception messages of LinkageError. Two class loaders load
  29  *          two different versions of a class. Should trigger exception in 
  30  *          SystemDictionary::check_constraints().
  31  * @library /test/lib
  32  * @compile D_ambgs.jasm
  33  * @run driver ClassFileInstaller test.D_ambgs
  34  * @compile  ../common/PreemptingClassLoader.java
  35  *           test/D_ambgs.java Test.java test/B.java
  36  * @run driver ClassFileInstaller test.B
  37  * @run main/othervm Test
  38  */
  39 
  40 import test.*;
  41 
  42 import java.io.ByteArrayOutputStream;
  43 import java.io.InputStream;
  44 
  45 import java.io.*;
  46 import java.nio.file.Files;
  47 import java.nio.file.Path;
  48 import java.nio.file.Paths;
  49 
  50 public class Test {


< prev index next >