Skip to content

Rename of class with constructor using default arguments causes error #902

@eric-milles

Description

@eric-milles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions