mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
We currently have three implementations of MethodMetadata: - StandardMethodMetadata (Java reflection) - SimpleMethodMetadata (ASM) - ClassFileMethodMetadata (ClassFile API) The ASM and ClassFile variants return a string equivalent to Class#getTypeName(); whereas, StandardMethodMetadata currently returns a binary name using Class#getName() (for example, `[I` instead of `int[]`). In order to align with the ASM and ClassFile variants and provide consistent results for all MethodMetadata implementations, this commit revises StandardMethodMetadata.getReturnTypeName() to use Class#getTypeName(). Closes gh-36619