Harmony
  1. Harmony
  2. HARMONY-6569

[classlib][nio]Socket from SocketChannel should return the local address after a bind.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M15
    • Component/s: None
    • Labels:
      None
    • Environment:
      All
    • Patch Info:
      Patch Available

      Description

      Given simple test case:
      Socket socket = SocketChannel.open().socket();
      socket.bind(address);

      Calling socket.getLocalAddress() should return the bind address, not just null.

        Activity

        Hide
        Li Jing Qin added a comment -

        Verified. Thanks Tim.

        Show
        Li Jing Qin added a comment - Verified. Thanks Tim.
        Hide
        Hudson added a comment -

        Integrated in Harmony-select-1.5-head-linux-x86_64 #56 (See http://hudson.zones.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/56/)
        Apply patch for HARMONY-6569 ([classlib][nio]Socket from SocketChannel should return the local address after a bind)

        Show
        Hudson added a comment - Integrated in Harmony-select-1.5-head-linux-x86_64 #56 (See http://hudson.zones.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/56/ ) Apply patch for HARMONY-6569 ( [classlib] [nio] Socket from SocketChannel should return the local address after a bind)
        Hide
        Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #882 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/882/)
        Apply patch for HARMONY-6569 ([classlib][nio]Socket from SocketChannel should return the local address after a bind)

        Show
        Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #882 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/882/ ) Apply patch for HARMONY-6569 ( [classlib] [nio] Socket from SocketChannel should return the local address after a bind)
        Hide
        Tim Ellison added a comment -

        Thanks for the patch.

        Applied to nio module at repo revision r960865.

        Please verify it was applied as you expected.

        Show
        Tim Ellison added a comment - Thanks for the patch. Applied to nio module at repo revision r960865. Please verify it was applied as you expected.

          People

          • Assignee:
            Tim Ellison
            Reporter:
            Li Jing Qin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development