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

Some tweaks for jarsigner tests PosixPermissionsTest and SymLinkTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: security-libs
    • Labels:

      Backports

        Description

        Working on 11u backports of JDK-8218021 and JDK-8250968, I found some minor points for improvement in tests
        test/jdk/sun/security/tools/jarsigner/PosixPermissionsTest.java and
        test/jdk/sun/security/tools/jarsigner/SymLinkTest.java

        The details

        PosixPermissionsTest:
        - it can run on any system, no matter if the default filesystem supports Posix or not since Posix support is only required for the zipfs which is always true.
        - improve some comments for the test flow

        SymLinkTest:
        - make output of createByteArray prettier
        - improve inline comments to ease understanding
        - add an option to main for generating ZIPBYTES
        - use "Files.write(Path.of(ZIPFILENAME), ZIPBYTES)" for creating the test zipfile

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                clanger Christoph Langer
                Reporter:
                clanger Christoph Langer
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: