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

doc:explicit the difference between isOverriding and isSubsignature #1449

Merged

Conversation

surli
Copy link
Collaborator

@surli surli commented Jun 29, 2017

No description provided.

@@ -318,26 +323,32 @@ public boolean isOverriding(CtMethod<?> thisMethod, CtMethod<?> thatMethod) {
}
}
//TODO check method visibility following https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.8.1
return isSubSignature(thisMethod, thatMethod);
return isSubSignature(thisMethod, thatMethod) || isSubSignature(thatMethod, thisMethod);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that, because in our case we can be sure that thisMethod belongs to sub class and thatMethod belongs to super class. So origin code is OK

@monperrus monperrus merged commit 096c800 into INRIA:master Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants