Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8238358 Implementation of JEP 371: Hidden Classes
  3. JDK-8239384

Convert LambdaMetaFactory to create hidden classes

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P2 P2
    • repo-valhalla
    • 15
    • core-libs
    • None

      The current implementation of LambdaMetaFactory creates VM-anonymous class which does not conform to the standard access control rules.

      This issue tracks the conversion of LambdaMetaFactory from using VM-anonymous class to hidden class.

      A hidden class is subject to standard access control rules.

      One non-standard access that VM-anonymous class has is that
      a VM-anonymous class can always access protected members of a superclass in a different package, which is not allowed by the rules of JVMS 5.4.4.

            mchung Mandy Chung
            mchung Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: