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

URLClassPath should use an ArrayDeque instead of a Stack

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • None
    • core-libs
    • None

    Description

      Stack is a deprecated class, derived from Vector, and URLClassPath synchronizes on the object, not using its internal synchronization. ArrayDeque also allows O(1) access to both ends.

      Attachments

        Issue Links

          Activity

            People

              martin Martin Buchholz
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: