You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CtExecutableReference interface specifies that getType() should return the method return type for a reference to a method, however the current implementation of the transformation from the JDT model to the spoon model is incorrect (at least, it appears so to me): at line 585 in JDTTreeBuilderHelper.java the type of the newly-created ExecutableReference is set to the type declaring the method, rather than the method return type itself.
This bug breaks, for example, the Refactoring.changeMethodName(CtMethod) method, since the ExecutableReference does not match with the one returned from the method itself, and overall makes matching method references to their corresponding method pretty awkward, as it has to be done manually.
The text was updated successfully, but these errors were encountered:
The CtExecutableReference interface specifies that
getType()
should return the method return type for a reference to a method, however the current implementation of the transformation from the JDT model to the spoon model is incorrect (at least, it appears so to me): at line 585 in JDTTreeBuilderHelper.java the type of the newly-created ExecutableReference is set to the type declaring the method, rather than the method return type itself.This bug breaks, for example, the
Refactoring.changeMethodName(CtMethod)
method, since the ExecutableReference does not match with the one returned from the method itself, and overall makes matching method references to their corresponding method pretty awkward, as it has to be done manually.The text was updated successfully, but these errors were encountered: