Skip to content

Throwable.getMessage() is not mapped to Exception.Message #165

Description

@paulirwin

Java's e.getMessage() converts to e.GetMessage(), which doesn't compile against C#'s Exception; it should map to the Message property. TypeHelper.ReplaceCommonMethodNames (TypeHelper.cs:147) already maps similar cases like hashCode/getClass/close, but that table only rewrites names, so mapping a method call to a property access needs slightly different handling. Noticed while working on #65.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions