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
Change Method Signature > Go to Exception tab > Same behavior while deleting existing exceptions.
Change Method Signature > Go to Exception tab > Add an exception with default name > Refactor (succeed) > Add an exception with default name again, Refactor and Preview don't work without errors.
I just checked and eclipse-jdtls/eclipse.jdt.ls#2754 should solve all of these, except the "adding an exception with a default name again". If by default name you mean "Exception"/"java.lang.Exception", while it doesn't appear to be a compilation error, it doesn't really make sense to have public void someMethod () throws Exception, Exception. The refactoring is partly correct in pointing out that you haven't really changed anything, although I guess the signature is technically different ?
We could improve this in the future if there really is a case for it.
The latter is actually an upstream issue we'd have to fix in the signature processor because even in Eclipse itself it doesn't permit adding a duplicate :
Environment
Steps To Reproduce
Change Method Signature
window, delete one parameter > Preview or RefactorCurrent Result
Expected Result
Can preview and refactor successfully.
The text was updated successfully, but these errors were encountered: