Skip to content

@JavaClass and inherited methods needs a redesign #441

@ktoso

Description

@ktoso

Currently @JavaClass("JavaStorageItem", implements: SomeSuperType.self) doesn't actually give instances of JavaStorageItem methods from SomeSuperType which is very hard to work with.

Developers need to know they have to as(SomeSuperType.self) though that's very counterintuitive.

Instead, when generating an open class interface, we need to make a protocol, put methods on it, and then anyone who implements: needs to conform their type to the SomeSuperTypeOperationsProtocol or something like that.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions