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

(tz) TimeZone.getDisplayName should use ConcurrentMap for caching display names

XMLWordPrintable

    • rc
    • generic
    • generic

        Date.toString was improved by eliminating static GregorianCalendar and SimpleDateFormat instances. However, it calls TimeZone.getDisplayName to get an abbreviation of a time zone. In the getDisplayName implementation, it uses a HashMap with synchronization. The HashMap should be replaced with a ConcurrentHashMap to improve concurrency.
        ###@###.### 2005-05-17 10:37:45 GMT

              okutsu Masayoshi Okutsu
              okutsu Masayoshi Okutsu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: