Improve lazy initialization of fields in java.net.URI

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b100
    • generic
    • generic

      URI has a number of volatile fields that should be reconsidered. Either:

      - each accessor should avoid re-reading volatile fields on fast-path
      - if creating more than one String of each field is benign, consider making the fields non-volatile

            Assignee:
            Claes Redestad
            Reporter:
            Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: