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 define base class and aspect class in the same project #45

Open
dvojtise opened this issue Apr 28, 2016 · 1 comment
Open

cannot define base class and aspect class in the same project #45

dvojtise opened this issue Apr 28, 2016 · 1 comment

Comments

@dvojtise
Copy link
Contributor

dvojtise commented Apr 28, 2016

A simple example with 2 files in the same project will not work.

package test.base
class A {
}

and the second file

package test.aspects
import test.base.A
@Aspect(className=A)
class AAspect {
}

the returned error is

Cannot resolve the class to aspectise. Check that the classes to aspectise are not in the same project that your aspects.

even if this isn't the typical use case for K3, this is annoying for correctly writing the tests for K3 😢

the bug also occurs if the files are in the same package

dvojtise added a commit that referenced this issue Apr 29, 2016
aspect are in the same project but not in the same folder. this seem to
be a bug similar to #45 (even if this isn't the same code)
@dvojtise
Copy link
Contributor Author

dvojtise commented Aug 6, 2018

Partial workaround:
if base class and aspect are in the same xtend file, then it works
However, this isn't enough for most cases.

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

No branches or pull requests

1 participant