sdeleuze
08/09/2019, 2:05 PMpublic interface Expression {
@Nullable
Object getValue(EvaluationContext context, Object rootObject) throws EvaluationException;
@Nullable
<T> T getValue(EvaluationContext context, @Nullable Class<T> desiredResultType) throws EvaluationException;
}
And following Kotlin code val value = expression.getValue(context, String::class.java)
, the method used is the first variant, not the second (with IDEA 2019.2 and Kotlin 1.3.41). Why?Marcelus Trojahn
08/09/2019, 2:46 PMsdeleuze
08/09/2019, 2:46 PMMarcelus Trojahn
08/09/2019, 2:47 PMsdeleuze
08/09/2019, 2:49 PMMarcelus Trojahn
08/09/2019, 2:51 PMsdeleuze
08/09/2019, 2:51 PM