Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GROOVY-7909 Calling parents method from trait using Parent.super.method() fail depending on trait declaration order #432

Closed
wants to merge 3 commits into from

Conversation

blindpirate
Copy link
Contributor

No description provided.

@@ -0,0 +1,57 @@
package groovy.bugs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add the license header to this file, should be able to grab it from another file in the same package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been added.

/**
* This transformer is used to transform calls to <code>SomeTrait.super.foo()</code> into the appropriate trait call.
*
* @author Cédric Champeau
* @since 2.3.0
*/
class SuperCallTraitTransformer extends ClassCodeExpressionTransformer {
public static final String UNRESOLVED_HELPER_CLASS = "UNRESOLVED_HELPER_CLASS";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only used in the same package, I think package-private would be better than public.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I haven't realize it. Done as you say.

@blackdrag
Copy link
Contributor

+1

@asfgit asfgit closed this in b32ce96 Mar 8, 2017
asfgit pushed a commit that referenced this pull request Mar 8, 2017
@paulk-asert
Copy link
Contributor

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants