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

Improper constructor name on Groovy class after copy-and-paste #723

Closed
mauromol opened this issue Sep 19, 2018 · 2 comments
Closed

Improper constructor name on Groovy class after copy-and-paste #723

mauromol opened this issue Sep 19, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@mauromol
Copy link

Consider this Groovy class:

package test36

class Test36 {
  Test36() {}
}

Now, copy and paste it, to create Test36b: the result is:

package test36

class Test36b {
  Test36() {}
}

This class does not compile, of course, because the constructor hasn't been renamed.

@mauromol mauromol changed the title No proper constructor renaming con Groovy class Copy 'n' Paste No proper constructor renaming on Groovy class Copy 'n' Paste Sep 20, 2018
@eric-milles eric-milles added this to the v3.3.0 milestone Oct 17, 2018
@eric-milles eric-milles changed the title No proper constructor renaming on Groovy class Copy 'n' Paste Improper constructor name on Groovy class after copy-and-paste Jan 10, 2019
@eric-milles
Copy link
Member

Can you try this again? When I try this now, I get the correct constructor.

@mauromol
Copy link
Author

Indeed, it seems to work fine in 3.3.0.xx-201901082257-e49, thank you!

@eric-milles eric-milles self-assigned this Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants