Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 534757

Summary: Use Javadoc @deprecated for code repair proposal
Product: [Eclipse Project] JDT Reporter: Ulrich Windl <Ulrich.Windl>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, jesper
Version: 4.7.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ulrich Windl CLA 2018-05-16 08:23:51 EDT
(I'm new to Eclipse and java, so maybe I don't know the correct phrases)
If I @Deprecate a used method, also adding a @deprecated comment, Eclipse complains that I'm using a deprecated variable (in my case), and it displays the @deprecated message that suggests the replacement, but Eclipse seems unable to extract the info from the doc to suggest a code fix. A code fix proposal would be nice, however...

I'm talking about a comment like "@deprecated use {@link #tail()} instead.". Here I'd expect that Eclipse suggests a replacement for the deprecated variable with tail().
Comment 1 Jesper Moller CLA 2018-06-19 07:54:08 EDT
Hi Ulrich - this is very difficult to implement in general, since A) the text in the JavaDoc need not follow any known grammar, and since the new method being referred to often take different arguments, have a different base type.

Moving to JDT UI (as it's not an APT problem)
Comment 2 Dani Megert CLA 2018-06-19 08:18:47 EDT

*** This bug has been marked as a duplicate of bug 16258 ***