-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
P4
-
None
-
Affects Version/s: 17.0.9
-
Component/s: core-libs
-
generic
-
generic
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
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