[Checkers] Lines in checkMethodInvocability
subanark at gmail.com
Tue Oct 7 16:33:37 EDT 2008
The method checkMethodInvocability in the BaseTypeVisitor has the following:
AnnotatedTypeMirror treeReceiver = methodReceiver.getCopy(false);
This is copying the annotations from the current method receiver to those on
a copy of the invoked method.
If the invoked method has a different type then this could cause a problem
with generic resolution (and it prevents the type factory from making any
Otherwise this is unnecessary.
It seems that the visitMethodInvocation which calls this has already
transformed the receiver to the correct type.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the checkers