ceylon-ide-eclipse icon indicating copy to clipboard operation
ceylon-ide-eclipse copied to clipboard

Completion does not show Java overloaded inherited method

Open sgalles opened this issue 10 years ago • 2 comments

In a Ceylon project create these java interfaces

public interface Foo {
    void create(String s);
}

public interface Bar extends Foo{
    void create(String s, String s2);

}

and in this ceylon code

shared void run(Bar bar){  
    bar.
}

the completion after bar. only show create(String? s), but does not show create(String? s, String? s2)

sgalles avatar Feb 08 '15 23:02 sgalles

So this is a model loader bug, there is no abstraction model for create(). It seems to me that this is a regression of some sort, because I could have sworn that this used to work. I'm also not sure if this is IDE-specific, or also affects the CLI.

gavinking avatar Feb 10 '15 00:02 gavinking

So what we have in the model for Bar is a single Method marked overloaded=true, but no Method marked abstraction=true. So this is one for @FroMage or @davidfestal.

gavinking avatar Feb 10 '15 00:02 gavinking