Harmony
  1. Harmony
  2. HARMONY-232

Some other minor Java 5 updates in java.io package

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      1. FilterInputStream.in should be volatile according to java 5.0 spec.
      2. ObjectStreamConstants.TC_MAX should change to 126, and two new constants TC_ENUM and SC_ENUM should be added to the class.
      3. ObjectStreamField lacks the method isUnShared
      4. PushbackInputStream should override super class's mark() and reset() method with differrent behavior, according to Java 5 spec

      1. java.io.Others_Test.patch
        3 kB
        Paulex Yang
      2. java.io.Others.patch
        4 kB
        Paulex Yang

        Activity

        Hide
        Paulex Yang added a comment -

        Pls. try this patch. thx.

        Show
        Paulex Yang added a comment - Pls. try this patch. thx.
        Hide
        Tim Ellison added a comment -

        Thanks Paulex,

        I applied a modified version of your patch to the LUNI module at repo revision 390451 (for example, ObjectStreamField got it's #isUnshared () method since you raised this).

        Please check the remaining fixes are as you expected.

        Show
        Tim Ellison added a comment - Thanks Paulex, I applied a modified version of your patch to the LUNI module at repo revision 390451 (for example, ObjectStreamField got it's #isUnshared () method since you raised this). Please check the remaining fixes are as you expected.
        Hide
        Paulex Yang added a comment -

        looks fine, thank you, Tim.

        Show
        Paulex Yang added a comment - looks fine, thank you, Tim.
        Hide
        Tim Ellison added a comment -

        Verified by Paulex.

        Show
        Tim Ellison added a comment - Verified by Paulex.

          People

          • Assignee:
            Tim Ellison
            Reporter:
            Paulex Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development