-
Bug
-
Resolution: Fixed
-
P3
-
8
CharBuffer.append(CharSequence) throws BufferOverflowException instead of ReadOnlyBufferException on attemt to attempt to put a String into a read-only CharBuffer that has insufficient space. Formally we cannot consider that as conformance bug because the spec does not explicitly state the order of checks. So any of the mentioned exceptions may be thrown in this case. Nevertheless that changes long-standing behavior and introduces some regression.
That issue caused the following JCK test failure:
api/java_nio/CharBuffer/index.html#Methods2[appendCharSequence0006]
The JCK test should also be fixed/relaxed to conform the specification (separate CR is submitted).
That issue caused the following JCK test failure:
api/java_nio/CharBuffer/index.html#Methods2[appendCharSequence0006]
The JCK test should also be fixed/relaxed to conform the specification (separate CR is submitted).
- relates to
-
JDK-8000178 (bf) Backout 7190219 fix for jdk7u (JCK issue)
-
- Closed
-
-
JDK-7190219 (bf) CharBuffer.put(String,int,int) modifies position even if BufferOverflowException thrown
-
- Closed
-