Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8149977

DumpLoadedClassList should not include generated classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b120

      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
      ....

            jiangli Jiangli Zhou
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: