Mercurial > hg > truffle
annotate test/compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java @ 18546:17b5e453ab41
replaced concrete types with interface types to support replay compilation
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 26 Nov 2014 20:50:49 +0100 |
parents | 8df6f123d35e |
children |
rev | line source |
---|---|
12885
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
1 /* |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
8df6f123d35e
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. |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
4 * |
8df6f123d35e
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 |
8df6f123d35e
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 |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
8 * |
8df6f123d35e
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 |
8df6f123d35e
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 |
8df6f123d35e
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 |
8df6f123d35e
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 |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
13 * accompanied this code). |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
14 * |
8df6f123d35e
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 |
8df6f123d35e
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, |
8df6f123d35e
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. |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
18 * |
8df6f123d35e
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 |
8df6f123d35e
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 |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
21 * questions. |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
22 * |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
23 */ |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
24 |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
25 /** |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
26 * @test |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
27 * @bug 8026124 |
8df6f123d35e
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 |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
29 * |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
30 * @run main/othervm CreatesInterfaceDotEqualsCallInfo |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
31 */ |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
32 |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
33 public class CreatesInterfaceDotEqualsCallInfo { |
8df6f123d35e
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 { |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
35 String[] jsargs = { System.getProperty("test.src", ".") + |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
36 "/createsInterfaceDotEqualsCallInfo.js" }; |
8df6f123d35e
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); |
8df6f123d35e
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"); |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
39 } |
8df6f123d35e
8026124: JSR-292 bug: java.nio.file.Path.toString cores dump
drchase
parents:
diff
changeset
|
40 } |