hotspot/test/compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java
author ykantser
Thu, 26 Mar 2015 16:36:56 +0100
changeset 29678 dd2f3932c21e
parent 20712 a06e1f01fb6e
child 40059 c2304140ed64
permissions -rw-r--r--
8075586: Add @modules as needed to the open hotspot tests Reviewed-by: sla, ctornqvi, lfoltan, mchung, alanb Contributed-by: alexander.kulyakhtin@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20712
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     1
/*
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 20712
diff changeset
     2
 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
20712
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     4
 *
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     7
 * published by the Free Software Foundation.
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     8
 *
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    13
 * accompanied this code).
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    14
 *
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    18
 *
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    21
 * questions.
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    22
 *
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    23
 */
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    24
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    25
/**
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    26
 * @test
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    27
 * @bug 8026124
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    28
 * @summary Javascript file provoked assertion failure in linkResolver.cpp
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 20712
diff changeset
    29
 * @modules jdk.scripting.nashorn/jdk.nashorn.tools
20712
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    30
 * @run main/othervm CreatesInterfaceDotEqualsCallInfo
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    31
 */
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    32
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    33
public class CreatesInterfaceDotEqualsCallInfo {
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    34
  public static void main(String[] args) throws java.io.IOException {
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    35
    String[] jsargs = { System.getProperty("test.src", ".") +
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    36
                        "/createsInterfaceDotEqualsCallInfo.js" };
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    37
    jdk.nashorn.tools.Shell.main(System.in, System.out, System.err, jsargs);
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    38
    System.out.println("PASS, did not crash running Javascript");
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    39
  }
a06e1f01fb6e 8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff changeset
    40
}