Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266320

(bf) ReadOnlyBufferException in heap buffer put(String,int,int) should not be conditional

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • core-libs
    • None
    • b21
    • generic
    • generic

      The current code is

          public $Type$Buffer put(String src, int start, int end) {
              checkScope();
              int length = end - start;
              Objects.checkFromIndexSize(start, length, src.length());
              if (isReadOnly())
                  throw new ReadOnlyBufferException();

      but should be using the #if[rw]-#else[rw]-#end[rw] construct as elsewhere in the template.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: