RFR: 8245309: Re-examine use of ThreadLocalCoders in sun.net.www.ParseUtil
    Julia Boes 
    jboes at openjdk.java.net
       
    Tue Sep 15 14:01:09 UTC 2020
    
    
  
On Tue, 15 Sep 2020 09:49:36 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> src/java.base/share/classes/sun/net/www/ParseUtil.java line 181:
>> 
>>> 179:         CharBuffer cb = CharBuffer.allocate(n);
>>> 180:         CharsetDecoder dec = UTF_8.INSTANCE.newDecoder()
>>> 181:                 .onMalformedInput(CodingErrorAction.REPLACE)
>> 
>> This changes the error action from REPORT to REPLACE. This has implications for all usages of ParseUtil. Did you mean
>> to do this?
>
> Good catch Alan. I overlooked this. This should not be changed.
That's an error, thanks for catching.
-------------
PR: https://git.openjdk.java.net/jdk/pull/170
    
    
More information about the net-dev
mailing list