Harmony
  1. Harmony
  2. HARMONY-6594

[classlib][nio_char] CharsetEncoder.flush(Bytebuffer) doesn't follow the spec and RI's behavior

    Details

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

      Description

      Java 5 spec says the fulsh() will throw IllegalStateException If the previous step of the current encoding operation was an invocation neither of the reset method nor of the three-argument encode method with a value of true for the endOfInput parameter.
      Our harmony one doesn't follow this behavior and won't throw Exception.

      1. HARMONY-6594_v2.diff
        6 kB
        deven you
      2. HARMONY-6594.diff
        3 kB
        deven you

        Issue Links

          Activity

          deven you created issue -
          deven you made changes -
          Field Original Value New Value
          Attachment HARMONY-6594.diff [ 12450016 ]
          deven you made changes -
          Link This issue blocks HARMONY-6590 [ HARMONY-6590 ]
          deven you made changes -
          Summary [classlib][luni] CharsetEncoder.flush(Bytebuffer) doesn't follow the spec and RI's behavior [classlib][nio_cahr] CharsetEncoder.flush(Bytebuffer) doesn't follow the spec and RI's behavior
          deven you made changes -
          Attachment HARMONY-6594_v2.diff [ 12450263 ]
          Tim Ellison made changes -
          Assignee Tim Ellison [ tellison ]
          Tim Ellison made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.0M15 [ 12315054 ]
          Resolution Fixed [ 1 ]
          Tim Ellison made changes -
          Summary [classlib][nio_cahr] CharsetEncoder.flush(Bytebuffer) doesn't follow the spec and RI's behavior [classlib][nio_char] CharsetEncoder.flush(Bytebuffer) doesn't follow the spec and RI's behavior
          Tim Ellison made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Tim Ellison made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Link This issue blocks HARMONY-6590 [ HARMONY-6590 ]
          Gavin made changes -
          Link This issue is depended upon by HARMONY-6590 [ HARMONY-6590 ]

            People

            • Assignee:
              Tim Ellison
              Reporter:
              deven you
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development