Skip to content

Java interface proxies do not respect optional arguments in methods #175

@eladb

Description

@eladb

They should convert optional members into method overloads.

Repro:

export interface InterfaceWithOptional {
  myMethod(arg1: string, optionalArg2: number?);
}

Package to java and the generated interface will include two methods (one with a single argument and one with two) but the proxy will only contain a single method. Compilation will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.language/javaRelated to Java bindings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions