Skip to content

Containing type does not implement interface #470

Open
@mattleibow

Description

@mattleibow

I have a simple case of abstract classes that aren't generating the correct code.

Java: interface-tests.jar.zip

public abstract class AbstractCollection extends Object implements Collection {
    // required implementation
}
public abstract class AbstractSet extends AbstractCollection implements Set {
}

I create a binding project, but I get some errors:

obj/Debug/generated/src/Interfacestests.AbstractSet.cs(68,33,68,55): error CS0540: 'AbstractSetInvoker.ISet.AddAll(ICollection)': containing type does not implement interface 'ISet'
obj/Debug/generated/src/Interfacestests.AbstractSet.cs(82,33,82,55): error CS0540: 'AbstractSetInvoker.ISet.ContainsAll(ICollection)': containing type does not implement interface 'ISet'
obj/Debug/generated/src/Interfacestests.AbstractSet.cs(96,33,96,55): error CS0540: 'AbstractSetInvoker.ISet.RemoveAll(ICollection)': containing type does not implement interface 'ISet'
obj/Debug/generated/src/Interfacestests.AbstractSet.cs(110,33,110,55): error CS0540: 'AbstractSetInvoker.ISet.RetainAll(ICollection)': containing type does not implement interface 'ISet'

I can fix this by creating a partial class and adding the interface, but that seems like it should have worked?

partial class AbstractSetInvoker : Java.Util.ISet {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    generatorIssues binding a Java library (generator, class-parse, etc.)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions