Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

J2S generated code can't work well for function overload in Java #3

Description

@qzhang8

BUG DETAILED DESCRIPTIONS
===========================================================
J2S generated code can't work well for function overload in Java
EXACT STEPS LEADING TO PROBLEM:
(Explain in detail what you do (e.g. tap on OK) and what you see (e.g.
message
Connection Failed appears))
===========================================================
1.In java, void store(float value) is different with store(short value),
But after compiled by j2s, if call store with short, it will goes into
store with float. nio of ReadWriteHeapByteBuffer.java has this issue.

In javascript, short, float, double, int ... are all treated as Number object.
And, in javascript, no type information is binded with function parameter, so
we hardly implemented this java polymorphic feature in j2s:(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions