Skip to content

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

Closed

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.

Activity

  1. added
    bug
    language/java
    on Aug 14, 2018
  2. RomainMuller commented on Aug 14, 2018

    @RomainMuller
    Contributor

    This will likely be true for constructors, as well.

  3. eladb commented on Aug 14, 2018

    @eladb
    ContributorAuthor
  4. changed the title [-]Java interface proxies (and builders?) do not respect optional arguments in methods[/-] [+]Java interface proxies do not respect optional arguments in methods[/+] on Sep 5, 2018
  5. added a commit that references this issue on Sep 5, 2018
    7125e67
  6. added 3 commits that reference this issue on Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglanguage/java

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions