RFR: JDK-8021560,(str) String constructors that take ByteBuffer

Ulf Zibis Ulf.Zibis at CoSoCo.de
Fri Feb 16 13:58:27 UTC 2018


Hi,

what is the difference of:
- class StringCoding
- class StringCoder
- class StringCoding.StringDecoder
- class StringCoding.StringEncoder

Why we need so much variants of redundant code? I think it would be 
useful to have some explanation in the javadoc.

Missing indentation in StringCoder.java :

  322 if (enc == null) {
  323     enc = cs.newEncoder()
  324             .onMalformedInput(CodingErrorAction.REPLACE)
  325             .onUnmappableCharacter(CodingErrorAction.REPLACE);
  326 }


-Ulf


Am 16.02.2018 um 00:25 schrieb Xueming Shen:
>
> http://cr.openjdk.java.net/~sherman/8021560/webrev.v2
>
> -Sherman
>
>
>



More information about the core-libs-dev mailing list