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

[mlvm] remove SAM code in MHTransformationGen

    XMLWordPrintable

Details

    • b06
    • generic
    • generic

    Description

      Early releases of java.lang.invoke package offered a method in MethodHandles class, which used to create a MethodHandle adapter for Single Abstract Method (SAM) interface. Later this functionality was removed from JDK (and a separate new concept, FunctionalInterface had been added to JDK8).

      MLVM method handle graph generator has code for the old SAM method adapter. This code is obsolete and can be removed.

      To find the obsolete code, look for USE_SAM constant in src/vm/mlvm/meth/share/MHTransformationGen.java. Code associated with it can be removed. Also src/vm/mlvm/meth/share/transform/v2/MHSamTF.java can be removed.

      Attachments

        Activity

          People

            jcbeyler Jean Christophe Beyler
            kshiroko Kirill Shirokov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: