Consider the following Java class:
package test3;
import java.net.URL;
public class MyBean {
private URL url;
public URL getUrl() {
return url;
}
public void setUrl(URL url) {
this.url = url;
}
}
And the following Groovy class:
package test3
import groovy.transform.CompileStatic
@CompileStatic
class TestDotCompletion {
static main(args) {
MyBean b = new MyBean()
// b.url.getAuthority()
b.with {
u|
}
}
}
Invoke code assist at "|" (I want to reference b.url): no suggestion for b.url is given. I would expect to find it as the top candidate.
Please note that if the method main is not static, code assist works ok for this case.
Consider the following Java class:
And the following Groovy class:
Invoke code assist at "|" (I want to reference
b.url): no suggestion forb.urlis given. I would expect to find it as the top candidate.Please note that if the method
mainis not static, code assist works ok for this case.