We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55abc6 commit 43409b0Copy full SHA for 43409b0
spring-core/src/main/java/org/springframework/core/KotlinDetector.java
@@ -84,6 +84,10 @@ public static boolean isKotlinReflectPresent() {
84
/**
85
* Determine whether the given {@code Class} is a Kotlin type
86
* (with Kotlin metadata present on it).
87
+ *
88
+ * <p>As of Kotlin 2.0, this method can't be used to detect Kotlin
89
+ * lambdas unless they are annotated with <code>@JvmSerializableLambda</code>
90
+ * as invokedynamic has become the default method for lambda generation.
91
*/
92
public static boolean isKotlinType(Class<?> clazz) {
93
return (kotlinMetadata != null && clazz.getDeclaredAnnotation(kotlinMetadata) != null);
0 commit comments