Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6583

Appendablewriter is designed with wrong signature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 5.4.4
    • rendering

      Writer is designed as

      abstract public void write(char cbuf[], int off, int len) throws IOException;

      but AppendableWriter overrides it as

      @Override
      public void write(char[] chars, int start, int end) throws IOException {
              appendable.append(new String(chars), start, end);
      }
      

      I found this when trying wo integrate with thymeleaf3. For now I can workaround by wrapping the AppendableWriter, but it gave me a headache and is simple wrong API, so I wanted to let you know.

        Acceptance criteria

              Unassigned Unassigned
              eiswind Thomas Kratz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD