Juergen Hoeller opened SPR-13850 and commented
RequestPartMethodArgumentResolver contains a conditional code path with a Optional.ofNullable call. While this will work in most pre-Java-8 environments as well, it's fragile in debug environments, in particular on the IBM JVM. We should defensively delegate to an inner class with the actual Optional reference, like we do in other places.
Also, RequestPartMethodArgumentResolver modifies the nesting level of a potentially cached MethodParameter instance. This should be avoided in favor of temporary nested type access or a MethodParameter clone.
Affects: 4.2.4
Issue Links:
Referenced from: commits 3779fe9, a58eee6, b4f33ad
Juergen Hoeller opened SPR-13850 and commented
RequestPartMethodArgumentResolvercontains a conditional code path with aOptional.ofNullablecall. While this will work in most pre-Java-8 environments as well, it's fragile in debug environments, in particular on the IBM JVM. We should defensively delegate to an inner class with the actualOptionalreference, like we do in other places.Also,
RequestPartMethodArgumentResolvermodifies the nesting level of a potentially cachedMethodParameterinstance. This should be avoided in favor of temporary nested type access or aMethodParameterclone.Affects: 4.2.4
Issue Links:
@ResponseBodymethod return type available to message converters@RequestPartReferenced from: commits 3779fe9, a58eee6, b4f33ad