Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-791

LineDelimeter.DEFAULT equals LineDelimeter.AUTO

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.7, 2.0.0-RC1
    • Fix Version/s: 2.0.2
    • Component/s: Filter
    • Labels:
      None
    • Environment:
      Linux Ubuntu 10.04, Java(TM) SE Runtime Environment (build 1.6.0_20-b02).

      Description

      LineDelimeter.DEFAULT equals LineDelimeter.AUTO that is the cause of "java.lang.IllegalArgumentException: AUTO delimiter is not allowed for encoder" exception at org.apache.mina.filter.codec.textline.TextLineEncoder.<init>(TextLineEncoder.java:68) when creating new TextLineEncoder instance with LineDelimiter.DEFAULT.

      i. e. this line:
      TextLineEncoder encoder = new TextLineEncoder(LineDelimiter.DEFAULT);
      will cause "java.lang.IllegalArgumentException: AUTO delimiter is not allowed for encoder." exception.

        Attachments

        1. LineDelimiter.diff
          0.7 kB
          evillive

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evillive evillive
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: