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

Cannot use extension fields in aspects #25

Open
tdegueul opened this issue Aug 25, 2014 · 0 comments
Open

Cannot use extension fields in aspects #25

tdegueul opened this issue Aug 25, 2014 · 0 comments
Labels

Comments

@tdegueul
Copy link

The way K3 generates Java code for aspects prevents the use of extension fields, see below:

abstract class ExtensionProvider {
    def void foo(String s)  
}

class Test {
    extension ExtensionProvider

    def void bar(String s) {
        s.foo     // This compiles
    }
}

@Aspect(className = SomeCls)
class AspectTest {
    extension ExtensionProvider

    def void bar(String s) {
        s.foo     // Error: The method foo is undefined for the type AspectTest
    }
}
@tdegueul tdegueul added the bug label Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant