kwin commented on code in PR #107:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/107#discussion_r1400329802
##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/ResourceMapperImpl.java:
##########
@@ -291,7 +292,7 @@ private List<String> readAliasesOptimized(String path) {
if ( aliases == null || !aliases.containsValue(name) )
return Collections.emptyList();
- return aliases.entrySet().stream()
+ return new LinkedHashMap<>(aliases).entrySet().stream()
Review Comment:
Indeed, I am looking into reproducing the concurrency issues in a unit test
and afterwards come up with a better fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]