import java.util.*;
public class LambdaTest {
public static void main(String args[]) {
List<String> a = new ArrayList<>();
a.add("hello world.");
a.forEach(System.out::println);
}
}
$ java -XX:DumpLoadedClassList=list -cp . LambdaTest
The list file contains some generated classes that are not part of the jimage. These classes should not be included.
java/lang/invoke/LambdaForm$MH
java/lang/invoke/LambdaForm$DMH
java/lang/invoke/LambdaForm$MH
java/lang/invoke/LambdaForm$MH
java/lang/invoke/LambdaForm$DMH
java/lang/invoke/LambdaForm$DMH
java/lang/invoke/LambdaForm$DMH
....
public class LambdaTest {
public static void main(String args[]) {
List<String> a = new ArrayList<>();
a.add("hello world.");
a.forEach(System.out::println);
}
}
$ java -XX:DumpLoadedClassList=list -cp . LambdaTest
The list file contains some generated classes that are not part of the jimage. These classes should not be included.
java/lang/invoke/LambdaForm$MH
java/lang/invoke/LambdaForm$DMH
java/lang/invoke/LambdaForm$MH
java/lang/invoke/LambdaForm$MH
java/lang/invoke/LambdaForm$DMH
java/lang/invoke/LambdaForm$DMH
java/lang/invoke/LambdaForm$DMH
....