< prev index next >

test/sun/misc/JarIndex/metaInfFilenames/Basic.java

Print this page


   1 /*
   2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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  * @bug 6887710
  27  * @summary Verify the impact of sun.misc.JarIndex.metaInfFilenames on ServiceLoader
  28  * @modules jdk.jartool/sun.tools.jar


  29  * @run main/othervm Basic
  30  */
  31 
  32 import java.io.IOException;
  33 import java.io.BufferedReader;
  34 import java.io.File;
  35 import java.io.FileInputStream;
  36 import java.io.InputStream;
  37 import java.io.InputStreamReader;
  38 import java.io.OutputStream;
  39 import java.net.InetSocketAddress;
  40 import java.net.URI;
  41 import java.net.URL;
  42 import java.net.URLClassLoader;
  43 import java.util.Arrays;
  44 import java.util.Iterator;
  45 import java.util.ServiceLoader;
  46 import com.sun.net.httpserver.Headers;
  47 import com.sun.net.httpserver.HttpExchange;
  48 import com.sun.net.httpserver.HttpHandler;


   1 /*
   2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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  * @bug 6887710
  27  * @summary Verify the impact of sun.misc.JarIndex.metaInfFilenames on ServiceLoader
  28  * @modules jdk.jartool/sun.tools.jar
  29  *          jdk.httpserver
  30  *          jdk.compiler
  31  * @run main/othervm Basic
  32  */
  33 
  34 import java.io.IOException;
  35 import java.io.BufferedReader;
  36 import java.io.File;
  37 import java.io.FileInputStream;
  38 import java.io.InputStream;
  39 import java.io.InputStreamReader;
  40 import java.io.OutputStream;
  41 import java.net.InetSocketAddress;
  42 import java.net.URI;
  43 import java.net.URL;
  44 import java.net.URLClassLoader;
  45 import java.util.Arrays;
  46 import java.util.Iterator;
  47 import java.util.ServiceLoader;
  48 import com.sun.net.httpserver.Headers;
  49 import com.sun.net.httpserver.HttpExchange;
  50 import com.sun.net.httpserver.HttpHandler;


< prev index next >