Skip to content

Quick fix implementation for method invisibility #1187

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

Merged

Conversation

NikolasKomonen
Copy link
Contributor

@NikolasKomonen NikolasKomonen commented Sep 20, 2019

Fixes issue #442

Signed-off-by: Nikolas Komonen [email protected]

@snjeza
Copy link
Contributor

snjeza commented Sep 20, 2019

Related issue - #1183

@fbricon
Copy link
Contributor

fbricon commented Sep 23, 2019

Wow this is super weird: the fix is not proposed when you implement the method of an interface or overriding the method of a class from the JDK (or all binaries?). This can be reproduced in Eclipse itself. @rgrunber is this a regression upstream or a known bug?

@rgrunber
Copy link
Contributor

rgrunber commented Sep 23, 2019

I think this is a bug. The problem happens at https://github.com/eclipse/eclipse.jdt.ui/blob/c25e5a83e3a015ddf6bfbef854ccc96a816cf267/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java#L277 . It only checks for super classes, but not interfaces, so the inheritted method is never located.

I have filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=551383 .

@fbricon fbricon merged commit 6b7d6c7 into eclipse-jdtls:master Sep 24, 2019
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.

4 participants