codeconsole commented on PR #3090: URL: https://github.com/apache/groovy/pull/3090#issuecomment-7073554262
Thanks Daniel. Master is merged in cd2d01e, which brings the Groovy12720 fix, and the lint gate passes. Two files conflicted. In `StaticTypesClosureWriter.createClosureClass`, the target interface is added before GROOVY-12492's `SamAdapterFactory.prepare`, which then skips a closure class that already implements the interface. In `StaticTypeCheckingVisitor`, master's single-pass resolution and the JLS 4.8 erasure for a raw receiver now live in `inferGenericsOfCall`, the helper this branch moved that code into. GROOVY-12492 turned down sealed interfaces, traits and non-public interfaces from another class loader for its adapter. The closure classes here had the same problem: a closure written for `List<Shout>` with a sealed `Shout` no longer compiled, a trait with a concrete method gave "must be declared abstract", and a package-private interface loaded by a parent loader gave `IllegalAccessError`. 849e9da passes those closures as they are, like an abstract class, and adds a test and a sentence in `core-semantics.adoc`. This branch contains #3089's commits, so landing #3089 as a merge commit first, or this PR alone, needs no further conflict resolution. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
