111 Commits

Author SHA1 Message Date
Steve Drach
4054254344 8132734: JDK 9 runtime changes to support multi-release jar files
JEP 238 Multi-Release JAR Files runtime support

Reviewed-by: alanb, psandoz, sherman
2016-02-15 17:47:53 -08:00
Yingqi Lu
4dfed66526 6432031: Add support for SO_REUSEPORT
Reviewed-by: alanb, simonis, chegar
2016-02-23 17:41:00 +00:00
Claes Redestad
9102b6eb21 8148626: URI.toURL needs to use protocol Handler to parse file URIs
Back out the parts of 8147462 that attempted to optimize file URI to URL conversions

Reviewed-by: darcy, chegar
2016-01-31 22:30:35 +01:00
Claes Redestad
7ae729a77f 8147462: URI.toURL could be more efficient for most non-opaque URIs
Reviewed-by: alanb, chegar
2016-01-29 11:35:56 +01:00
Claes Redestad
e9df200123 8147962: URL should handle lower-casing of protocol locale-independently
Reviewed-by: chegar, alanb, naoto
2016-01-27 13:51:35 +01:00
Iris Clark
9d07dc02e1 8136494: Update "@since 1.9" to "@since 9" to match java.version.specification
Reviewed-by: alanb, chegar, lancea, prr
2016-01-20 11:02:36 -08:00
Mark Sheppard
72e0832da6 8059054: Better URL processing
Reviewed-by: chegar, rriggs, ahgross, coffeys, igerasim
2015-07-29 13:42:56 +01:00
Svetlana Nikandrova
c100bda1b5 8143554: UnsupportedOperationException is not thrown for unsupported options
Reviewed-by: alanb
2016-01-16 00:27:53 +03:00
Chris Hegarty
ed581c190a 8146736: Move sun.misc performance counters to jdk.internal.perf
Reviewed-by: alanb, mchung, rriggs
2016-01-13 14:32:42 +00:00
Claes Redestad
79ef0bb994 8146686: Create the schemeSpecificPart for non-opaque URIs lazily
Reviewed-by: alanb, chegar
2016-01-10 14:14:13 +01:00
Claes Redestad
01b7a38291 8146526: Improve java.net.URI$Parser startup characteristics
Reviewed-by: chegar, alanb
2016-01-06 20:16:59 +01:00
Brian Burkhalter
ae68be4a75 8146041: java.net.URLConnection.guessContentTypeFromStream() does not recognize TIFF streams
Add detection of TIFF magic numbers.

Reviewed-by: rriggs, chegar
2016-01-06 10:15:37 -08:00
Chris Hegarty
aa0ef2e9f5 8145544: Move sun.misc.VM to jdk.internal.misc
Reviewed-by: alanb, mullan, weijun
2016-01-06 10:01:44 +00:00
Ramanand Patil
c31b3a5e83 8145388: URLConnection.guessContentTypeFromStream returns image/jpg for some JPEG images
Since "image/jpg" is not a valid Content Type, the method should return "image/jpeg" when APPn marker segment has 'EE' as a marker type.

Reviewed-by: prr, bpb
2015-12-25 16:45:15 +03:00
Claes Redestad
c6afc47fc1 8145862: Improve lazy initialization of fields in java.net.URI
Reviewed-by: shade, chegar
2015-12-22 19:14:47 +01:00
David Buck
cbba70caa3 Merge 2015-12-21 21:14:19 +01:00
Claes Redestad
5f1918e76e 8145680: Remove unnecessary explicit initialization of volatile variables in java.base
Reviewed-by: alanb, chegar, jfranck, shade
2015-12-21 20:54:00 +01:00
Sebastian Sickelmann
fb053862e5 4906983: java.net.URL constructors throw MalformedURLException in undocumented way
Added some testcases for the corner-cases in question and clarified javadoc

Reviewed-by: chegar, msheppar
2015-12-15 17:35:27 +01:00
Roger Riggs
e15eefc7d7 8141652: Rename methods Objects.nonNullElse* to requireNonNullElse*
And some usages of replacing expr != null ? expr : otherexpr

Reviewed-by: jrose, chegar
2015-11-11 22:38:15 -05:00
Chris Hegarty
bdbc4d15df 8140606: Update library code to use internal Unsafe
Reviewed-by: alanb, mchung, psandoz, weijun
2015-11-11 09:19:12 +00:00
Sebastian Sickelmann
47ec9819c2 8141662: Javadoc fix. Do not suggest to use new Boolean(true)
Javadoc only fix of 5108778 Too many instances of java.lang.Boolean created in Java application for the java/net library

Reviewed-by: wetmore
2015-11-10 21:13:40 +01:00
Sean Coffey
6a867ae5df 8133196: HTTPS hostname invalid issue with InetAddress
Reviewed-by: chegar, xuelei
2015-09-01 18:12:07 +01:00
Chris Hegarty
a086d7e431 8139179: URLStreamHandler* should link to URL ctor that specifies how factories/providers are located
Reviewed-by: alanb
2015-10-10 17:30:04 +01:00
Chris Hegarty
0cc24c29ca 8137056: Move SharedSecrets and interface friends out of sun.misc
Reviewed-by: alanb, mchung, psandoz, rriggs
2015-09-28 13:39:27 +01:00
Martin Buchholz
a2f0fe3c94 8136583: Core libraries should use blessed modifier order
Run blessed-modifier-order script (see bug)

Reviewed-by: psandoz, chegar, alanb, plevart
2015-09-15 21:56:04 -07:00
Ivan Gerasimov
50aa8839d5 8072466: Deadlock when initializing MulticastSocket and DatagramSocket
Reviewed-by: chegar
2015-09-09 16:33:19 +03:00
Alexander Stepanov
3ff6e41288 8132478: [tidy] three new warnings from java docs (java.net, javax.annotation)
Minor docs cleanup (jdk part)

Reviewed-by: lancea
2015-08-18 18:04:17 +03:00
Alexander Stepanov
ea7449a3ad 8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
Reviewed-by: lancea
2015-08-14 14:40:13 +03:00
Roger Riggs
a0824cf9ea 8132705: Refactor SharedSecrets in sun.misc.JavaNetAccess
Factor out access for InetAddress

Reviewed-by: chegar, michaelm, alanb
2015-07-30 14:16:58 -04:00
Xue-Lei Andrew Fan
635f7a3e20 8067694: Improved certification checking
Reviewed-by: mullan, jnimeh, coffeys, robm, asmotrak, ahgross
2015-02-04 11:13:14 +00:00
Pavel Rappo
91a4a6b0ce 8064925: URLConnection::getContent needs to be updated to work with modules
Reviewed-by: chegar, alanb
2015-07-10 16:40:12 +01:00
Artem Smotrakov
aa2d62b688 8129444: socksProxyVersion system property ignored for Socket(Proxy)
Reviewed-by: chegar
2015-07-03 08:00:33 +01:00
Ivan Gerasimov
0e510a1f61 8077242: (str) Optimize AbstractStringBuilder.append(CharSequence, int, int) for String argument
Reviewed-by: martin
2015-07-02 00:26:35 +03:00
Paul Sandoz
e56c76e9f7 8081678: Add Stream returning methods to classes where there currently exist only Enumeration returning methods
Reviewed-by: lancea, alanb, chegar, dfuchs, mullan, smarks
2015-06-09 07:10:02 +01:00
Sean Mullan
e37ef5fefc 8056179: Store permissions in concurrent collections in PermissionCollection subclasses
8065942: Store PermissionCollection entries in a ConcurrentHashMap instead of a HashMap in Permissions class

Reviewed-by: weijun
2015-06-09 09:18:07 -04:00
Sean Coffey
4ae5f74173 8072384: Setting IP_TOS on java.net sockets not working on unix
Reviewed-by: michaelm
2015-06-04 18:16:25 +01:00
Joe Darcy
d112215fc2 8078467: Update core libraries to use diamond with anonymous classes
Reviewed-by: mchung, alanb
2015-04-23 09:32:35 -07:00
Chris Hegarty
e028ed3a21 8075139: Restore java.protocol.handler.pkgs to work as a fallback for migration
Reviewed-by: alanb, psandoz
2015-04-21 14:23:58 +01:00
Pavel Rappo
39b55b3d5a 8075959: Change parameter names in some IOException subclasses
Reviewed-by: rriggs
2015-03-25 15:42:41 +00:00
Sean Coffey
6d78b91ac9 7178362: Socket impls should ignore unsupported proxy types rather than throwing
Reviewed-by: chegar
2015-02-25 11:44:53 +00:00
Chris Hegarty
f71f63f2f2 8073667: URL should not use service loader to lookup the jar protocol handler
Reviewed-by: alanb
2015-02-23 17:22:56 +00:00
Chris Hegarty
b7d0702188 8064924: Update java.net.URL to work with modules
Reviewed-by: alanb, plevart, psandoz
2015-02-23 15:48:20 +00:00
Joe Darcy
0d5c151c94 8041395: Doclint regression in java.net.SocketOption
Reviewed-by: lancea
2015-02-09 15:33:56 -08:00
Konstantin Shefov
e70362baba 6933879: URISyntaxException when non-alphanumeric characters are present in scope_id
Reviewed-by: chegar
2015-01-23 15:42:06 +03:00
Mark Sheppard
c1aaf5dc04 8056264: Multicast support improvements
Avoid passing a null ifname string to GetStringUTFChars native fn calls within a NetworkInterface method call flows

Reviewed-by: chegar, alanb
2014-09-12 16:11:40 +01:00
Chris Hegarty
43842f6349 Merge 2014-12-03 19:28:35 +00:00
Chris Hegarty
441905cdc7 8049367: Modular Run-Time Images
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
2014-12-03 14:22:58 +00:00
Aleksey Shipilev
e1f99ed979 8065096: java.net.Authenticator.theAuthenticator should be properly synchronized
Reviewed-by: chegar, lancea
2014-11-17 15:30:22 +03:00
Michael McMahon
df1eec112e 8062744: jdk.net.Sockets.setOption/getOption does not support IP_TOS
Reviewed-by: alanb, chegar
2014-11-04 15:09:01 +00:00
Michael McMahon
01ea2212b1 8053963: (dc) Use DatagramChannel.receive() instead of read() in connect
Reviewed-by: alanb, chegar
2014-08-21 17:51:29 +01:00