Skip to content

Conversation

@jjohnstn
Copy link
Contributor

  • fix Java50FixCore.AnnotationRewriteOperation to accept an annotation to copy
  • modify Java50FixCore.createAddDeprectatedAnnotation() and createFix() methods to look for member deprecation problem and if the owning type deprecation annotation has parameters, copy it for the member
  • add new test to QuickFixTest9
  • fixes "Add missing @Deprecated annotation" does not copy parameters #2763

What it does

See issue.

How to test

See issue or new test.

Author checklist

- fix Java50FixCore.AnnotationRewriteOperation to accept an annotation
  to copy
- modify Java50FixCore.createAddDeprectatedAnnotation() and
  createFix() methods to look for member deprecation problem and
  if the owning type deprecation annotation has parameters, copy
  it for the member
- add new test to QuickFixTest9
- fixes eclipse-jdt#2763
@jjohnstn jjohnstn self-assigned this Jan 29, 2026
@jjohnstn jjohnstn added the bug Something isn't working label Jan 29, 2026
@jjohnstn jjohnstn added this to the 4.39 M3 milestone Jan 29, 2026
@jjohnstn jjohnstn merged commit d778b7b into eclipse-jdt:master Jan 29, 2026
13 checks passed
@jjohnstn jjohnstn deleted the deprecated3 branch January 29, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Add missing @Deprecated annotation" does not copy parameters

1 participant