< prev index next >

test/java/lang/Package/annotation/PackageInfoTest.java

Print this page




   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  *          jdk.compiler
  31  *          jdk.xml.dom
  32  * @build jdk.xml.dom/org.w3c.dom.css.Fake
  33  *        jdk.xml.dom/org.w3c.dom.css.FakePackage
  34  * @compile/module=jdk.xml.dom org/w3c/dom/css/package-info.java
  35  * @compile package-info.java PackageInfoTest.java
  36  * @run testng p.PackageInfoTest
  37  */
  38 
  39 package p;
  40 
  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.util.ArrayList;




   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.desktop

  29  *          jdk.compiler
  30  *          jdk.xml.dom
  31  * @build jdk.xml.dom/org.w3c.dom.css.Fake
  32  *        jdk.xml.dom/org.w3c.dom.css.FakePackage
  33  * @compile/module=jdk.xml.dom org/w3c/dom/css/package-info.java
  34  * @compile package-info.java PackageInfoTest.java
  35  * @run testng p.PackageInfoTest
  36  */
  37 
  38 package p;
  39 
  40 import java.io.IOException;
  41 import java.io.UncheckedIOException;
  42 import java.lang.annotation.Annotation;
  43 import java.net.URL;
  44 import java.net.URLClassLoader;
  45 import java.nio.file.Files;
  46 import java.nio.file.Path;
  47 import java.nio.file.Paths;
  48 import java.util.ArrayList;


< prev index next >