You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, and thank you for the quick fix in #1295. Unfortunately, tests are still failing with a ConcurrentModificationException.
The error occurs in the ModuleTestExecution.of method when calling PackageName.ofType(type), which internally invokes:
staticPackageNameof(Stringname) {
Assert.notNull(name, "Name must not be null!");
vardefaulted = name.isBlank() ? DEFAULT : name;
returnPACKAGE_NAMES.computeIfAbsent(defaulted, PackageName::new);
}
Since PACKAGE_NAMES is a plain HashMap and not thread-safe, concurrent accesses cause the exception. The same fix proposed in PR #1298 should help: replace the HashMap with a concurrent map implementation.