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

LineDelimeter.DEFAULT equals LineDelimeter.AUTO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.7, 2.0.0-RC1
    • 2.0.2
    • Filter
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: