Harmony
  1. Harmony
  2. HARMONY-301

Java 5 Enhancement: A new method "setPerformancePreference" is added in java.net.Socket, SocketImpl and ServerSocket classes.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None

      Description

      Hi,

      A new method "setPerformancePreference" is added in java.net.Socket, SocketImpl and ServerSocket classes.

      I'll upload a patch for this issue soon.

      Thanks!

      1. luni.src.patch
        2 kB
        Richard Liang
      2. new.luni.src.patch
        9 kB
        Richard Liang

        Activity

        Hide
        Richard Liang added a comment -

        Hello,

        Would you please try my patch for this issue. Thanks a lot.

        Show
        Richard Liang added a comment - Hello, Would you please try my patch for this issue. Thanks a lot.
        Hide
        Richard Liang added a comment -

        Hello,

        I'm sorry. Please try the new patch new.luni.src.patch and ignore the old one luni.src.patch.

        Sorry, again.

        Show
        Richard Liang added a comment - Hello, I'm sorry. Please try the new patch new.luni.src.patch and ignore the old one luni.src.patch. Sorry, again.
        Hide
        George Harley added a comment -

        Hi Richard,

        Thanks for these enhancements. After studying the supplied implementations of these methods I have simplified things a bit by removing the declaration and setting of the new private fields that do not actually get used anywhere else.

        Doing a little bit of research on these methods (i.e. sticking my nose in "Java in a Nutshell"), it seems like they are no-ops for 5.0. I just can't find any reference to them being used anywhere.

        Modied versions of your changes have been committed in revision 393425. If you are happy with the way I have applied them then we can close this issue out.

        Best regards,
        George

        Show
        George Harley added a comment - Hi Richard, Thanks for these enhancements. After studying the supplied implementations of these methods I have simplified things a bit by removing the declaration and setting of the new private fields that do not actually get used anywhere else. Doing a little bit of research on these methods (i.e. sticking my nose in "Java in a Nutshell"), it seems like they are no-ops for 5.0. I just can't find any reference to them being used anywhere. Modied versions of your changes have been committed in revision 393425. If you are happy with the way I have applied them then we can close this issue out. Best regards, George
        Hide
        Richard Liang added a comment -

        Hello George,

        I'm also confused They are new-defined methods in Java 5.0, but actually, we can do nothing.

        You fix looks fine. Please close this issue. Thanks a lot.

        Show
        Richard Liang added a comment - Hello George, I'm also confused They are new-defined methods in Java 5.0, but actually, we can do nothing. You fix looks fine. Please close this issue. Thanks a lot.
        Hide
        George Harley added a comment -

        Verified by Richard.

        Show
        George Harley added a comment - Verified by Richard.

          People

          • Assignee:
            George Harley
            Reporter:
            Richard Liang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development