Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230211

Prepare DatagramSocket for alternative DatagramSocketImpl

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
      None

      Description

      Evaluate how java.net.DatagramSocket can be simplified to make it a lot easier to replace the underlying implementation.
      Among other things, the following should be considered and evaluated:

      1. Drop the support for DatagramSocketImpl implementations that are compiled with JDK 1.3 or older.

      2. Drop the filtering when the DatagramSocket is connected. Instead, DatagramSocketImpl.connect should flush the read queue after the address association is setup.

      3. Change DatagramSocket.recieve so that the security manager case when not connected always receives into a temporary buffer. This will eliminate the need to peek ahead.

      Other preparatory work that could make it easier to provide an alternative implementation should also be considered.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pconcannon Patrick Concannon
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: