codeconsole commented on PR #3044: URL: https://github.com/apache/groovy/pull/3044#issuecomment-6421024410
I've cut this down to the first step: the 6.0.0 regression for fields of a private nested type (GROOVY-12310). The rest follows one pull request at a time, each opened after the previous one is merged: 1. GROOVY-12512: calling an outer instance method where there is no enclosing instance is a compile error. This only rejects code that already fails at run time in every mode. 2. GROOVY-12509: private getters and setters of another class of the same nest, through property syntax. 3. GROOVY-12510: a private method of a superclass is not found through a subclass. Code that runs under `@CompileStatic` today stops compiling, as javac rejects it. 4. GROOVY-12509: private methods and constructors of another class of the same nest. 5. GROOVY-12511: `@CompileStatic` uses the enclosing instance for a private member of an outer class that a nested class extends. 6. GROOVY-12513: private fields and accessors through a variable that flow typing narrows to a subclass. Each description lists the code that stops compiling and anything that behaves differently under `@CompileStatic`. #3049 and #3050 are drafts until the steps they need are merged. -- 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]
