import org.junit.jupiter.api.Test;
public class LambdaTest {
@Test
void test() {
Runnable runnable = () -> System.out.println("Aloha World!");
System.out.println(runnable.getClass().getName());
}
}
- But starting from JDK21, this unit test prints `org.apache.shardingsphere.elasticjob.kernel.internal.setup.LambdaTest$$Lambda/0x00007f04bc0ad7d8`.
- One difference this makes is that I can no longer use `$$Lambda$` to match it.
- I can only see similar changes on the GraalVM side at https://github.com/oracle/graal/pull/7775 , but there is no indication of which JEP this was introduced in. Is there any direct JDK21 documentation that explains this change?