Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 285551 - [extract method] "Ambiguous return value" error #1914

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

jjohnstn
Copy link
Contributor

@jjohnstn jjohnstn commented Jan 9, 2025

What it does

See issue.

How to test

See issue or new tests.

Author checklist

- fix ExtractMethodAnalyzer.checkInitialConditions() to replace the
  selection if dealing with an Expression that is part of an
  ExpressionStatement and the logic has calculated there are
  multiple return values
- modify ExtractMethodRefactoring to recognize if the analyzer
  has replaced the selection in which case start again and
  refresh values
- add new tests to ExtractMethodTests
- fixes eclipse-jdt#1913
@jjohnstn jjohnstn self-assigned this Jan 9, 2025
@jjohnstn jjohnstn added the bug Something isn't working label Jan 9, 2025
@jjohnstn jjohnstn added this to the 4.35 M2 milestone Jan 9, 2025
@jjohnstn jjohnstn merged commit f186d2b into eclipse-jdt:master Jan 9, 2025
10 checks passed
@jjohnstn jjohnstn deleted the extractmethod branch January 9, 2025 16:22
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
1 participant