Summary: | [quick fix] suggest super for missing return in overriden methods | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | manju656, midhun0407, noopur_gupta |
Version: | 3.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
See Also: | https://git.eclipse.org/r/75894 | ||
Whiteboard: |
Description
Adam Kiezun
2004-06-09 11:13:42 EDT
Can you be more specific of your post? May be with an example. (In reply to Midhun Vishnukripa from comment #1) > Can you be more specific of your post? May be with an example. public class A { int foo() { return -1; } } class B extends A { @Override int foo() { // error - quick fix to add "return super.foo();" } } Also, with Java 8: interface I { default int foo() { return -1; } } class C implements I { @Override public int foo() { // error - quick fix to add "return I.super.foo();" } } New Gerrit change created: https://git.eclipse.org/r/75869 New Gerrit change created: https://git.eclipse.org/r/75894 Midhun, please amend the same Gerrit request instead of creating new ones for the updates. Also, remove all the unnecessary changes like whitespace changes from the patch and make sure that there are no test failures in the build. |