CharsetDecoder/Encoder's constructor does not reject NaN

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 12
    • Affects Version/s: 12
    • Component/s: core-libs

      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.

            Assignee:
            Ivan Gerasimov
            Reporter:
            Ivan Gerasimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: