See #31213 for background.
PathMatchingResourcePatternResolver
is reflecting on org.eclipse.core.runtime.FileLocator
and invoking methods on it for OSGi support. While this use case is highly unlikely in native images, registering the reflection entry by itself should be enough.