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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: