This is a follow up to #29163.

Once https://github.com/oracle/graal/issues/5080 and https://github.com/oracle/graal/issues/5081 have been resolved (tentatively in GraalVM 22.3), we should be able to remove the following workaround in PathMatchingResourcePatternResolver.

https://github.com/spring-projects/spring-framework/blob/6cb131ac7629cfda489d4d2367a36d44ee7b5ed2/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java#L744-L750