Paul King created GROOVY-12388:
----------------------------------

             Summary: DgmConverter: avoid MethodType constants in the adapter 
initialisers
                 Key: GROOVY-12388
                 URL: https://issues.apache.org/jira/browse/GROOVY-12388
             Project: Groovy
          Issue Type: Improvement
            Reporter: Paul King
            Assignee: Paul King


Involves: the generated dgm$N classes load their target handle with an ldc 
MethodType, which D8 accepts only from API 28. Emitting a 
MethodType.methodType(Class, Class[]) call instead brings the floor back to API 
26, where indy starts.
Impact on normal usage: slightly larger adapter bytecode and a method call 
instead of a constant-pool resolution in each adapter's static initialiser, 
both negligible. The value is small too: Android 8 and 8.1 devices are around 
one percent of the installed base, so this is the one I would skip.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to