Skip to content

Groovy-Eclipse breaks "Call Hierarchy" and "Find Method References" functions in Eclipse #135

@vace117

Description

@vace117

I just noticed that Eclipse is not able to find method call references from Groovy classes.

Here's a very simple example:

Service.groovy:

public interface Service {
    public void findThisMethod(Long producerOid, Long agreementOid);
}

ServiceImpl1.groovy:

class ServiceImpl1 implements Service {
    public void findThisMethod(Long producerOid, Long agreementOid) {
        println "Here"
    }
}

BackingBean.java:

public class BackingBean {
    Service service;

    public void method1() {
        service.findThisMethod(0L, 0L);
    }
}

Now, if I right click on ServiceImpl1.findThisMethod -> Open Call Hierarchy, I get the correct info:
Successful Call Hierarchy

Now, let's rename BackingBean**.java** to BackingBean**.groovy** and run Open Call Hierarchy again. Now we are no longer able to find the method reference:
Failed Call Hierarchy

I am using Groovy-Eclipse 2.9.2.xx-201502281941-e44.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions