< prev index next >

test/sun/net/www/protocol/http/B6296310.java

Print this page




   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 6296310

  27  * @library ../../httptest/
  28  * @build HttpCallback TestHttpServer HttpTransaction
  29  * @run main/othervm B6296310
  30  * @summary  REGRESSION: AppletClassLoader.getResourceAsStream() behaviour is wrong in some cases
  31  */
  32 
  33 import java.net.*;
  34 import java.io.*;
  35 import java.util.*;
  36 
  37 /*
  38  * http server returns 200 and content-length=0
  39  * Test will throw NPE if bug still exists
  40  */
  41 
  42 public class B6296310
  43 {
  44    static SimpleHttpTransaction httpTrans;
  45    static TestHttpServer server;
  46 




   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 6296310
  27  * @modules java.base/sun.net.www
  28  * @library ../../httptest/
  29  * @build HttpCallback TestHttpServer HttpTransaction
  30  * @run main/othervm B6296310
  31  * @summary  REGRESSION: AppletClassLoader.getResourceAsStream() behaviour is wrong in some cases
  32  */
  33 
  34 import java.net.*;
  35 import java.io.*;
  36 import java.util.*;
  37 
  38 /*
  39  * http server returns 200 and content-length=0
  40  * Test will throw NPE if bug still exists
  41  */
  42 
  43 public class B6296310
  44 {
  45    static SimpleHttpTransaction httpTrans;
  46    static TestHttpServer server;
  47 


< prev index next >