File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
spring-core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 19
19
/**
20
20
* Default implementation of the {@link ParameterNameDiscoverer} strategy interface,
21
21
* using the Java 8 standard reflection mechanism (if available), and falling back
22
- * to the ASM-based {@link LocalVariableTableParameterNameDiscoverer} for checking
23
- * debug information in the class file.
22
+ * on the JVM (not in native images) to the ASM-based
23
+ * {@link LocalVariableTableParameterNameDiscoverer} for checking debug information
24
+ * in the class file.
24
25
*
25
26
* <p>If a Kotlin reflection implementation is present,
26
27
* {@link KotlinReflectionParameterNameDiscoverer} is added first in the list and
@@ -43,7 +44,9 @@ public DefaultParameterNameDiscoverer() {
43
44
addDiscoverer (new KotlinReflectionParameterNameDiscoverer ());
44
45
}
45
46
addDiscoverer (new StandardReflectionParameterNameDiscoverer ());
46
- addDiscoverer (new LocalVariableTableParameterNameDiscoverer ());
47
+ if (!NativeDetector .inNativeImage ()) {
48
+ addDiscoverer (new LocalVariableTableParameterNameDiscoverer ());
49
+ }
47
50
}
48
51
49
52
}
You can’t perform that action at this time.
0 commit comments