Project: JDT
Bug 160966 [quick fix] Provide quick fix for incorrect @Override annotation
Reported: 2006-10-14 18:54:43 | Status: resolved fixed

Version: 3.3.0 Build id: I20060922-0010 If you specify an @Override annotation on a method that does not override a method in a superclass you correctly get a compiler error stating as much. It would be nice if there were a quick fix for this problem to remove the offending annotation. Another possible fix would be to add the missing superclass method, but this possibly less useful. A similar fix could be provided when you specify an annotation in the wrong position (like on a constructor)

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AbstractMethodCompletionProposal.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewDefiningMethodProposal.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickFixProcessor.java