Improve thread safety of FileTime.toString and toInstant

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 20
    • Affects Version/s: 17, 19, 20
    • Component/s: core-libs
    • b10

      Class java.nio.file.attribute.FileTime is immutable with 2 fields which are initialized lazily.
      We need to read fields instant/valueAsString once, as to dodge/resolve the data race on reading lazily-initialized fields.

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: