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

Elements#getPackageElement throws ConcurrentModificationException

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      Calling Elements#getPackageElement concurrently can throw a ConcurrentModificationException due to the implementation by JavacElements cache:
      private final Map<Pair<String, String>, Optional<Symbol>> resultCache = new HashMap<>();



      CUSTOMER SUBMITTED WORKAROUND :
      Use a sequential stream.

      FREQUENCY : occasionally


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: