-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P5
-
Affects Version/s: 12
-
Component/s: core-libs
-
b11
-
Verified
The javadoc states that for non-positive arguments averageCharsPerByte or maxCharsPerByte the exception is thrown.
https://docs.oracle.com/javase/10/docs/api/java/nio/charset/CharsetDecoder.html#%3Cinit%3E(java.nio.charset.Charset,float,float)
However, it doesn't happen when NaN is passed in.
https://docs.oracle.com/javase/10/docs/api/java/nio/charset/CharsetDecoder.html#%3Cinit%3E(java.nio.charset.Charset,float,float)
However, it doesn't happen when NaN is passed in.
- csr for
-
JDK-8210377 CharsetDecoder/Encoder's constructor does not reject NaN
-
- Closed
-