You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:(
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:(