ConcurrentLruCache no longer allows for capacity = 0 (previously sizeLimit) breaking backward compatibility. Moreover, according to the javadoc above public constructor, it should be possible to use capacity = 0. Please either change the javadoc or revert behaviour. https://github.com/spring-projects/spring-framework/blob/af0b39a722ca233bca1dd8e3287eb1bd852f238a/spring-core/src/main/java/org/springframework/util/ConcurrentLruCache.java#L84

Comment From: sbrannen

This change was introduced in 6.0 in commit c470262c8ea733fd0846a50232599715ec2d2b83.

Thanks for bringing this to our attention.

Comment From: jhoeller

Let's try to fix this in 6.0.13 if possible.

Comment From: kcichonczyk

@sbrannen At first I created this PR, but then realised it's not a typo but changes around the logic. Sorry for confusion.