Skip to content

Import not updated for nested enum class #379

@mauromol

Description

@mauromol

Consider the following Java class:

package test9;
public class Outer {
  public static enum MyEnum {
	  A, B;
  }
}

And the following Groovy class:

package test9
import test9.Outer.MyEnum
class GroovyClass {
	void doSomething() {
		MyEnum myEnum = MyEnum.A
	}
}

Now refactor Outer class and rename it to Outer2.
The following line in GroovyClass is not updated:
import test9.Outer.MyEnum

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