Skip to content

Implicit getter and setter accesses not shown in Call Hierarchy #508

@mauromol

Description

@mauromol

Something like a follow-up to #489.
Consider the following Java class:

package test22;
public class MyBean {
	private String foo;
	public void setFoo(String foo) {
		this.foo = foo;
	}
	public String getFoo() {
		return foo;
	}
}

And the following Groovy class:

package test22

import groovy.transform.CompileStatic

@CompileStatic
class Test22 {
	public Test22() {
		def b = new MyBean(foo: 'c')
		b.foo = 'foo'
		def c = b.foo
	}
}

Invoke Call Hierarchy on MyBean.setFoo(String): I would expect to see references from def b = new MyBean(foo: 'c') and b.foo = 'foo'. However, I just see the first (thanks to #489), not the second.

Invoke Call Hierarchy on MyBean.getFoo(): I would expect to see references from def c = b.foo, but I don't see it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions