forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[javac] fix quickfix to implement inherited abstract methods
- add mapping for error id for missing abstract method implementations - fixed an NPE that would prevent the error from being shown on anonymous classes - fix binding logic for anonymous classes example to try out: use the quickfix to add a stub implementation of method() to the anonymous class: ```java public class Parent { static interface IMethodable { void method(); } public static void myMethod() { IMethodable methodable = new IMethodable() { }; methodable.method(); } } ``` Future work: fix the diagnostic range on anonymous classes. We might need access to the AST, since we ideally want to highlight `IMethodable` from the constructor invocation. Signed-off-by: David Thompson <[email protected]>
- Loading branch information
Showing
4 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters