-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
CtFieldReference.getDefaultExpression() returns initializer from a field of another class #1213
Labels
Comments
surli
added a commit
to surli/spoon
that referenced
this issue
Mar 10, 2017
surli
added a commit
to surli/spoon
that referenced
this issue
Mar 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to collect and evaluate certain strings in the source repository.
I tried VisitorPartialEvaluator, but it runs into an infinite loop. The reason of this is that fields get mixed up. The code setup is like this:
Now if you try to read the return value of the
getKey()
method, the CtFieldReference object will return the default value ofClassB.PREFIX
, notBaseClass.PREFIX
.The text was updated successfully, but these errors were encountered: