mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
GeneratedClass.reserveMethodNames(String...) passed the entire varargs array to MethodName.of() inside the per-name loop instead of the current element. Since MethodName.of(String...) joins all parts into a single camel-case name, reserving two or more names (for example "apply" and "test") produced "applyTest", and the per-element check Assert.state(generatedName.equals(reservedMethodName)) failed with an IllegalStateException. Single-name calls worked only by accident. Reserve each supplied name individually by passing the loop variable. Signed-off-by: junhyeong9812 <pickjog@gmail.com>