test/langtools/tools/javac/processing/model/util/printing/module-info.java
author jjg
Wed, 03 Jan 2018 11:10:56 -0800
changeset 48427 b08405cc467a
parent 47216 71c04702a3d5
permissions -rw-r--r--
8193125: javac should not compile a module if it requires java.base with modifiers Reviewed-by: vromero

/*
 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

/*
 * @test
 * @bug 8173609
 * @summary printing of modules
 * @compile/ref=module-info.out -Xprint p/P.java module-info.java
 */

/**
 * Printing of modules
 */
@Deprecated
module printing {
    requires static transitive java.compiler;
    exports p to m.m1, m.m2;
    opens p to m.m1, m.m2;
    uses p.P;
    provides p.P with p.P.P1, p.P.P2;
}