8157635: Fix module dependencies for /sun/* tests

Module declarations for the tests in /sun/*

Reviewed-by: alanb
This commit is contained in:
John Jiang 2016-05-25 03:06:24 +01:00 committed by John Jiang
parent 7dcb615aae
commit 4408e4cb4a
34 changed files with 79 additions and 31 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
@ -26,6 +26,7 @@
# @test # @test
# @bug 4763315 # @bug 4763315
# @modules java.naming
# @build CanonicalName Lookup # @build CanonicalName Lookup
# @run shell/timeout=120 cname.sh # @run shell/timeout=120 cname.sh
# @summary Test DNS provider's handling of CNAME records # @summary Test DNS provider's handling of CNAME records

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/** /**
* @test * @test
* @bug 4333920 * @bug 4333920
* @modules jdk.httpserver
* @run main ChunkedEncodingTest * @run main ChunkedEncodingTest
* @summary ChunkedEncodingTest unit test * @summary ChunkedEncodingTest unit test
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -26,6 +26,7 @@
* @bug 4333920 4994372 * @bug 4333920 4994372
* @summary ChunkedEncoding unit test; MeteredStream/ProgressData problem * @summary ChunkedEncoding unit test; MeteredStream/ProgressData problem
* @modules java.base/sun.net * @modules java.base/sun.net
* jdk.httpserver
* @run main ChunkedEncodingWithProgressMonitorTest * @run main ChunkedEncodingWithProgressMonitorTest
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6446990 * @bug 6446990
* @modules jdk.httpserver
* @run main/othervm TestAvailable * @run main/othervm TestAvailable
* @summary HttpURLConnection#available() reads more and more data into memory * @summary HttpURLConnection#available() reads more and more data into memory
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/** /**
* @test * @test
* @bug 5026745 6631048 * @bug 5026745 6631048
* @modules jdk.httpserver
* @run main/othervm/timeout=500 Test * @run main/othervm/timeout=500 Test
* @summary Cannot flush output stream when writing to an HttpUrlConnection * @summary Cannot flush output stream when writing to an HttpUrlConnection
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@ import java.util.concurrent.Executors;
/* /*
* @test * @test
* @bug 7025238 * @bug 7025238
* @modules jdk.httpserver
* @summary HttpURLConnection does not handle URLs with an empty path component * @summary HttpURLConnection does not handle URLs with an empty path component
*/ */
public class B7025238 { public class B7025238 {

View File

@ -41,6 +41,7 @@ import java.util.List;
* @summary Tests for HTTP Digest auth * @summary Tests for HTTP Digest auth
* The impl maintains a cache for auth info, * The impl maintains a cache for auth info,
* the testcases run in a separate JVM to avoid cache hits * the testcases run in a separate JVM to avoid cache hits
* @modules jdk.httpserver
* @run main/othervm DigestAuth good * @run main/othervm DigestAuth good
* @run main/othervm DigestAuth only_nonce * @run main/othervm DigestAuth only_nonce
* @run main/othervm DigestAuth sha1 * @run main/othervm DigestAuth sha1

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -40,6 +40,7 @@ import sun.net.www.protocol.http.ntlm.NTLMAuthenticationCallback;
* @test * @test
* @bug 8137174 * @bug 8137174
* @modules java.base/sun.net.www.protocol.http.ntlm * @modules java.base/sun.net.www.protocol.http.ntlm
* jdk.httpserver
* @summary Checks if NTLM auth works fine if security manager set * @summary Checks if NTLM auth works fine if security manager set
* @run main/othervm/java.security.policy=NTLMAuthWithSM.policy NTLMAuthWithSM * @run main/othervm/java.security.policy=NTLMAuthWithSM.policy NTLMAuthWithSM
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@ import java.net.*;
/* /*
* @test * @test
* @bug 7157360 * @bug 7157360
* @modules jdk.httpserver
* @summary HttpURLConnection: HTTP method DELETE doesn't support output * @summary HttpURLConnection: HTTP method DELETE doesn't support output
*/ */
public class PostOnDelete { public class PostOnDelete {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,7 @@
* @test * @test
* @bug 6550798 * @bug 6550798
* @summary Using InputStream.skip with ResponseCache will cause partial data to be cached * @summary Using InputStream.skip with ResponseCache will cause partial data to be cached
* @modules jdk.httpserver
* @run main/othervm test * @run main/othervm test
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6358532 * @bug 6358532
* @modules jdk.httpserver
* @run main/othervm AsyncDisconnect * @run main/othervm AsyncDisconnect
* @summary HttpURLConnection.disconnect doesn't really do the job * @summary HttpURLConnection.disconnect doesn't really do the job
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 5017051 6360774 * @bug 5017051 6360774
* @modules jdk.httpserver
* @run main/othervm B5017051 * @run main/othervm B5017051
* @summary Tests CR 5017051 & 6360774 * @summary Tests CR 5017051 & 6360774
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6299712 7150552 * @bug 6299712 7150552
* @modules jdk.httpserver
* @run main/othervm B6299712 * @run main/othervm B6299712
* @summary NullPointerException in sun.net.www.protocol.http.HttpURLConnection.followRedirect * @summary NullPointerException in sun.net.www.protocol.http.HttpURLConnection.followRedirect
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6369510 * @bug 6369510
* @modules jdk.httpserver
* @run main/othervm B6369510 * @run main/othervm B6369510
* @summary HttpURLConnection sets Content-Type to application/x-www-form-urlencoded * @summary HttpURLConnection sets Content-Type to application/x-www-form-urlencoded
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6518816 * @bug 6518816
* @modules jdk.httpserver
* @run main/othervm B6518816 * @run main/othervm B6518816
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6641309 * @bug 6641309
* @modules jdk.httpserver
* @summary Wrong Cookie separator used in HttpURLConnection * @summary Wrong Cookie separator used in HttpURLConnection
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6660405 * @bug 6660405
* @modules jdk.httpserver
* @summary HttpURLConnection returns the wrong InputStream * @summary HttpURLConnection returns the wrong InputStream
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/** /**
* @test * @test
* @bug 8012625 * @bug 8012625
* @modules jdk.httpserver
* @run main B8012625 * @run main B8012625
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/** /**
* @test * @test
* @bug 6947917 * @bug 6947917
* @modules jdk.httpserver
* @summary Error in basic authentication when user name and password are long * @summary Error in basic authentication when user name and password are long
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6488669 6595324 6993490 * @bug 6488669 6595324 6993490
* @modules jdk.httpserver
* @run main/othervm ChunkedErrorStream * @run main/othervm ChunkedErrorStream
* @summary Chunked ErrorStream tests * @summary Chunked ErrorStream tests
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -23,6 +23,7 @@
/** /**
* @test * @test
* @bug 7095980 8007315 * @bug 7095980 8007315
* @modules jdk.httpserver
* @summary Ensure HttpURLConnection (and supporting APIs) don't expose * @summary Ensure HttpURLConnection (and supporting APIs) don't expose
* HttpOnly cookies * HttpOnly cookies
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/** /**
* @test * @test
* @bug 8011719 * @bug 8011719
* @modules jdk.httpserver
* @summary Basic checks to verify behavior of returned input streams * @summary Basic checks to verify behavior of returned input streams
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 7133367 * @bug 7133367
* @modules jdk.httpserver
* @summary ResponseCache.put should not be called when setUseCaches(false) * @summary ResponseCache.put should not be called when setUseCaches(false)
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/** /**
* @test * @test
* @library /lib/testlibrary/ * @library /lib/testlibrary/
* @modules jdk.httpserver
* @build jdk.testlibrary.SimpleSSLContext * @build jdk.testlibrary.SimpleSSLContext
* @compile RedirectOnPost.java * @compile RedirectOnPost.java
* @run main/othervm RedirectOnPost * @run main/othervm RedirectOnPost

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6472250 * @bug 6472250
* @modules jdk.httpserver
* @run main/othervm StreamingOutputStream * @run main/othervm StreamingOutputStream
* @summary HttpURLConnection.getOutputStream streaming mode bug when called multiple times * @summary HttpURLConnection.getOutputStream streaming mode bug when called multiple times
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6421122 * @bug 6421122
* @modules jdk.httpserver
* @run main/othervm UserAuth * @run main/othervm UserAuth
* @summary Authorization header removed for preemptive authentication by user code * @summary Authorization header removed for preemptive authentication by user code
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/* /*
* @test * @test
* @bug 6439651 * @bug 6439651
* @modules jdk.httpserver
* @run main/othervm UserAuth * @run main/othervm UserAuth
* @summary Sending "Cookie" header with JRE 1.5.0_07 doesn't work anymore * @summary Sending "Cookie" header with JRE 1.5.0_07 doesn't work anymore
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -26,6 +26,7 @@
* @bug 8027308 * @bug 8027308
* @key intermittent * @key intermittent
* @modules java.base/sun.net.www.protocol.http * @modules java.base/sun.net.www.protocol.http
* jdk.httpserver
* @summary verifies that HttpURLConnection does not send the zone id in the * @summary verifies that HttpURLConnection does not send the zone id in the
* 'Host' field of the header: * 'Host' field of the header:
* Host: [fe80::a00:27ff:aaaa:aaaa] instead of * Host: [fe80::a00:27ff:aaaa:aaaa] instead of

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -26,6 +26,7 @@
* @bug 6771432 * @bug 6771432
* @summary createSocket() - smpatch fails using 1.6.0_10 because of * @summary createSocket() - smpatch fails using 1.6.0_10 because of
* "Unconnected sockets not implemented" * "Unconnected sockets not implemented"
* @modules jdk.httpserver
* @run main/othervm HttpsCreateSockTest * @run main/othervm HttpsCreateSockTest
* *
* SunJSSE does not support dynamic system properties, no way to re-use * SunJSSE does not support dynamic system properties, no way to re-use

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,7 @@
* @test * @test
* @bug 6614957 * @bug 6614957
* @summary HttpsURLConnection not using the set SSLSocketFactory for creating all its Sockets * @summary HttpsURLConnection not using the set SSLSocketFactory for creating all its Sockets
* @modules jdk.httpserver
* @run main/othervm HttpsSocketFacTest * @run main/othervm HttpsSocketFacTest
* *
* SunJSSE does not support dynamic system properties, no way to re-use * SunJSSE does not support dynamic system properties, no way to re-use

View File

@ -26,6 +26,9 @@
* @bug 8132734 8144062 * @bug 8132734 8144062
* @summary Test that URL connections to multi-release jars can be runtime versioned * @summary Test that URL connections to multi-release jars can be runtime versioned
* @library /lib/testlibrary/java/util/jar * @library /lib/testlibrary/java/util/jar
* @modules java.compiler
* jdk.httpserver
* jdk.jartool
* @build Compiler JarBuilder CreateMultiReleaseTestJars SimpleHttpServer * @build Compiler JarBuilder CreateMultiReleaseTestJars SimpleHttpServer
* @run testng MultiReleaseJarURLConnection * @run testng MultiReleaseJarURLConnection
*/ */

View File

@ -43,6 +43,7 @@ import java.util.Random;
/* /*
* @test * @test
* @requires sun.arch.data.model == "64" * @requires sun.arch.data.model == "64"
* @modules java.management
* @build TestMaxCachedBufferSize * @build TestMaxCachedBufferSize
* @run main/othervm TestMaxCachedBufferSize * @run main/othervm TestMaxCachedBufferSize
* @run main/othervm -Djdk.nio.maxCachedBufferSize=0 TestMaxCachedBufferSize * @run main/othervm -Djdk.nio.maxCachedBufferSize=0 TestMaxCachedBufferSize

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,19 @@
* @test * @test
* @bug 8047771 * @bug 8047771
* @summary check permissions and principals from various modules * @summary check permissions and principals from various modules
* @modules java.desktop
* java.logging
* java.management
* java.security.jgss
* java.smartcardio
* java.sql
* java.xml
* java.xml.bind
* jdk.attach
* jdk.jdi
* jdk.net
* jdk.security.auth
* jdk.security.jgss
* @compile -addmods java.xml.ws,java.smartcardio Modules.java * @compile -addmods java.xml.ws,java.smartcardio Modules.java
* @run main/othervm/java.security.policy==modules.policy * @run main/othervm/java.security.policy==modules.policy
* -addmods java.xml.ws,java.smartcardio Modules * -addmods java.xml.ws,java.smartcardio Modules

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@
* logger. * logger.
* *
* @modules java.base/sun.util.logging * @modules java.base/sun.util.logging
* java.logging
* @compile -XDignore.symbol.file SourceClassName.java * @compile -XDignore.symbol.file SourceClassName.java
* @run main/othervm SourceClassName * @run main/othervm SourceClassName
*/ */