test/tools/javac/lambda/DoubleStaticImport.java

Tue, 24 Dec 2013 09:17:37 -0800

author
ksrini
date
Tue, 24 Dec 2013 09:17:37 -0800
changeset 2227
998b10c43157
parent 1654
b6cf07c54c29
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8029230: Update copyright year to match last edit in jdk8 langtools repository for 2013
Reviewed-by: ksrini
Contributed-by: steve.sides@oracle.com

mcimadamore@1654 1 /*
ksrini@2227 2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
mcimadamore@1654 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@1654 4 *
mcimadamore@1654 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@1654 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@1654 7 * published by the Free Software Foundation.
mcimadamore@1654 8 *
mcimadamore@1654 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@1654 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@1654 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@1654 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@1654 13 * accompanied this code).
mcimadamore@1654 14 *
mcimadamore@1654 15 * You should have received a copy of the GNU General Public License version
mcimadamore@1654 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@1654 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@1654 18 *
mcimadamore@1654 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
mcimadamore@1654 20 * or visit www.oracle.com if you need additional information or have any
mcimadamore@1654 21 * questions.
mcimadamore@1654 22 */
mcimadamore@1654 23
mcimadamore@1654 24 /*
mcimadamore@1654 25 * @test
mcimadamore@1654 26 * @bug 8009820
mcimadamore@1654 27 * @summary AssertionError when compiling java code with two identical static imports
mcimadamore@1654 28 * @compile DoubleStaticImport.java
mcimadamore@1654 29 */
mcimadamore@1654 30
mcimadamore@1654 31 import static java.lang.Thread.holdsLock;
mcimadamore@1654 32 import static java.lang.Thread.holdsLock; //dup
mcimadamore@1654 33
mcimadamore@1654 34 class DoubleStaticImport {
mcimadamore@1654 35 public void test() {
mcimadamore@1654 36 holdsLock(null);
mcimadamore@1654 37 }
mcimadamore@1654 38 }

mercurial