langtools/test/tools/javac/defaultMethods/crossCompile/CrossCompile.java
changeset 25445 603f0c93d5c9
parent 19934 1d8232b1aa18
equal deleted inserted replaced
25444:27045478cf23 25445:603f0c93d5c9
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 7192246
    26  * @bug 7192246
    27  * @summary check that clinit in interface doesn't cause spurious default method diagnostics
    27  * @summary check that clinit in interface doesn't cause spurious default method diagnostics
    28  * @compile -source 1.4 -target 1.4 Clinit.java
    28  * @compile Clinit.java
    29  * @compile CrossCompile.java
    29  * @compile CrossCompile.java
    30  */
    30  */
    31 class CrossCompile {
    31 class CrossCompile {
    32    void test() {
    32    void test() {
    33         String s = Clinit.s;
    33         String s = Clinit.s;