You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix change method signature to recognize name collision (#1767)
* Fix change method signature to recognize name collision
- modify ChangeSignatureProcessor to check for the case where the
new name is already a method accessible to a location that is
calling the old name
- make method in Checks class public to convert ICompilationUnit to
CompilationUnit
- add new test to ChangeSignatureTests
- fixes#1751
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/refactoring/RefactoringCoreMessages.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,8 @@ public final class RefactoringCoreMessages extends NLS {
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/refactoring/refactoring.properties
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -808,6 +808,7 @@ ChangeSignatureRefactoring_method_deleted=The selected method has been deleted f
808
808
ChangeSignatureRefactoring_native=Method ''{0}'' declared in type ''{1}'' is native. Reordering parameters will cause UnsatisfiedLinkError on runtime if you do not update your native libraries.
ChangeSignatureRefactoring_return_type_contains_type_variable=The return type ''{0}'' contains the type variable ''{1}'', which may not be available in related methods.
811
+
ChangeSignatureRefactoring_method_name_will_shadow=Renaming method ''{0}'' to ''{1}'' causes potential logic change due to an existing ''{0}'' method accessible at a call location.
811
812
ChangeSignatureRefactoring_method_name_not_empty=The method name cannot be empty.
812
813
ChangeSignatureRefactoring_default_value=Enter the default value for parameter ''{0}''.
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureProcessor.java
Copy file name to clipboardExpand all lines: org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ChangeSignatureTests.java
0 commit comments