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

Class data support for hidden classes

    XMLWordPrintable

    Details

      Description

      One feature of `Unsafe::defineAnonymousClass` is constant pool patching that is used by LambdaForm and few external libraries [1].

      One idea is to allow a dynamically generated class be defined with a class data which can only be obtained by a full-power lookup (e.g. `Lookup::classData` method).

      [1] http://jigsaw-dev.1059479.n5.nabble.com/Remove-sun-misc-Unsafe-defineAnonymousClass-td5715601.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: