Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove binary array name handling in ClassUtils.forName()
In ClassUtils.forName(), we originally delegated to ClassLoader.loadClass(), which does not support loading classes from binary names for arrays (such as "[[I" for "int[][]" or "[Ljava.lang.String;" for "String[]"); whereas, Class.forName() does support binary names for arrays. However, in Spring Framework 5.1.1 we switched from using ClassLoader.loadClass() to Class.forName() in ClassUtils.forName() (see gh-21867), which makes our custom handling of binary names for arrays in ClassUtils.forName() obsolete. In light of that, this commit removes our custom binary array name handling support from ClassUtils.forName(). Closes gh-34291
- Loading branch information