-
-
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
invocation.getExecutable().getExecutableDeclaration() returns null in case of enum methods call #793
Comments
I agree this is a real problem for end users. I've proposed a solution in #661 , what do you think? |
I wonder why |
Well, got it, issue is these are synthetic methods of |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs say
getExecutableDeclaration()
should returnCtExecutable
even if Spoon should use reflection to do it. There is an example it doesn't andinvocation.getExecutable().getExecutableDeclaration()
returnsnull
.Steps to reproduce:
Create
Create call to
E.values()
and assigninvocation
toCtInvocation
of it. Nowinvocation.getExecutable().getExecutableDeclaration()
returnsnull
.Possible reason is that class
E
is not recognized as subclass ofjava.lang.Enum
becauseE
is in source path andjava.lang.Enum
isn't and there are noextends
declaration onE
.The text was updated successfully, but these errors were encountered: