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


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

              Created:
              Updated:
              Resolved: