Skip to content

Missing code assist in static method with @CompileStatic #371

@mauromol

Description

@mauromol

Follow-up to #360.

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 {
			url.|
		}
	}
}

Invoke code assist at "|": no suggestion at all is shown.

Please note that if you remove @CompileStatic or if you replace it with @TypeChecked, it works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions