Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8322802

Add testing for ZipFile.getEntry respecting the 'Language encoding' flag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs

      JDK-7009069 describes a bug where ZipFile.getEntry does not respect the 'Language encoding' flag, indicating that the entry's name and comment should be decoded using UTF-8 regardless of the charset passed to the ZipFile constructor.

      This has later been fixed "accidentally", most probably by JDK-8243469.

      While current testing verifies that the iteration use case ZipFile.entries() respects the flag, similar testing does not exists for the lookup case in ZipFile.getEntry.

      We should extend the current testing in ZipCodings to also test ZipFile.getEntry. This is also a good opportunity to convert the test to JUnit 5 and make it a parameterized test.

            eirbjo Eirik Bjørsnøs
            eirbjo Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: