Package org.codehaus.groovy.runtime.callsite

Package org.codehaus.groovy.runtime.callsite Description

Classic (non-invokedynamic) call-site caching.

Primary purpose (GROOVY-11158): preserve runtime binary compatibility for classes compiled by Groovy 4 and Groovy 5 (and by earlier releases that always used classic call sites). Those classes link against CallSiteArray and CallSite; with this optional module on the classpath they must still load and execute on Groovy 6. The public linkage surface of those types is stable for that reason.

The same types also support compiling with indy disabled. Groovy 6 core uses invokedynamic for new compilation by default and does not depend on this package. Add groovy-callsite only when classic bytecode must still be produced or executed.

Prefer invokedynamic call sites for new code. This entire package is planned for deprecation/removal in a future Groovy version.

since:
1.5 (relocated to the groovy-callsite module in 6.0)