groovy-eclipse
groovy-eclipse copied to clipboard
Rename of class with constructor using default arguments causes error
Consider the following:
class DefaultParams {
String value
DefaultParams(String value = '') {
this.value = value
}
/*@Generated
DefaultParams() {
this((String)'')
}*/
}
Rename "DefaultParams" to anything else and there is a refactoring error due to overlapping edits for generated constructors. The generated constructor(s) for default arguments share the name range of the original for searching purposes.
This may also be an issue for @NamedVariant methods.