RFR [15] 8241988 DatagramSocket incorrectly caches the first set of socket options
mark sheppard
macanaoire at hotmail.com
Wed Apr 1 14:12:23 UTC 2020
Hi Chris,
just looking at the supportedOptions method in the two classes
DatagramSocket and MulticastSocket, if I haven't misread them, are
they not the same?
As such MulticastSocket could inherit that method from DatagramSocket ?
(without the necessity to override)
regards
Mark
________________________________
From: net-dev <net-dev-bounces at openjdk.java.net> on behalf of Chris Hegarty <chris.hegarty at oracle.com>
Sent: Wednesday 1 April 2020 13:29
To: OpenJDK Network Dev list <net-dev at openjdk.java.net>
Subject: RFR [15] 8241988 DatagramSocket incorrectly caches the first set of socket options
DatagramSocket incorrectly caches the first set of socket options that
it encounters (through an invocation of supportedOptions()),
subsequently returning that set of options regardless of what the
particular datagram socket impl actually supports.
Webrev:
https://cr.openjdk.java.net/~chegar/8241988/webrev/
JIRA:
https://bugs.openjdk.java.net/browse/JDK-8241988
This issue has been filed so as to extract the long(ish) standing issue
from the work being done to support JEP 373 [1]. The code changes in
this review are only slightly different to the changes being proposed in
the review for 373 [1], so can be merged will little effort.
-Chris.
[1] https://mail.openjdk.java.net/pipermail/net-dev/2020-April/013748.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200401/9633fc77/attachment-0001.htm>
More information about the net-dev
mailing list