[
https://issues.apache.org/jira/browse/GROOVY-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King updated GROOVY-12237:
-------------------------------
Labels: breaking (was: )
> CheckingVisitor.findTargetVariable is now a protected instance method (was
> public static)
> ------------------------------------------------------------------------------------------
>
> Key: GROOVY-12237
> URL: https://issues.apache.org/jira/browse/GROOVY-12237
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Labels: breaking
> Fix For: 6.0.0-alpha-1
>
>
> commit ed63edb33f
> As part of general cleanup in commit ed63edb33f,
> org.apache.groovy.typecheckers.CheckingVisitor#findTargetVariable changed
> from implicitly-public static to protected instance, aligning it with the
> rest of the class's protected, subclass-facing design. Binary-incompatible
> for third-party checkers compiled against 5.x (invokestatic →
> NoSuchMethodError); source-compatible for subclasses calling it unqualified,
> source-incompatible for external callers using
> CheckingVisitor.findTargetVariable(...). No shim is possible (a static and
> instance method with the same signature cannot coexist). Note
> groovy-typecheckers was incubating in 5.x, so this is migration guidance
> rather than a broken guarantee. Recompile against 6.x; external
> (non-subclass) callers should inline the small lookup themselves.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)