8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @summary Basic test of package-info in named module and duplicate 27 * package-info in unnamed module 28 * @compile package-info.java PackageInfoTest.java 29 * @run testng p.PackageInfoTest 30 */ 31 32 package p; 33 34 import java.io.File; 35 import java.io.IOException; 36 import java.io.UncheckedIOException; 37 import java.lang.annotation.Annotation; 38 import java.net.URL; 39 import java.net.URLClassLoader; 40 import java.nio.file.Files; 41 import java.nio.file.Path; 42 import java.nio.file.Paths; 43 import java.nio.file.attribute.BasicFileAttributes; 44 import java.util.ArrayList; 45 import java.util.Arrays; 46 import java.util.List; 47 | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @summary Basic test of package-info in named module and duplicate 27 * package-info in unnamed module 28 * @modules java.compiler 29 * java.desktop 30 * java.management 31 * jdk.attach 32 * jdk.jdi 33 * jdk.xml.dom 34 * @compile package-info.java PackageInfoTest.java 35 * @run testng p.PackageInfoTest 36 */ 37 38 package p; 39 40 import java.io.File; 41 import java.io.IOException; 42 import java.io.UncheckedIOException; 43 import java.lang.annotation.Annotation; 44 import java.net.URL; 45 import java.net.URLClassLoader; 46 import java.nio.file.Files; 47 import java.nio.file.Path; 48 import java.nio.file.Paths; 49 import java.nio.file.attribute.BasicFileAttributes; 50 import java.util.ArrayList; 51 import java.util.Arrays; 52 import java.util.List; 53 |