Skip to content

Explore the option to implement automatic conversion of primitive numeric types to their counterpart reference types #19

@slavchev

Description

@slavchev

byte -> java.lang.Byte
short -> java.lang.Short
int -> java.lang.Integer
long -> java.lang.Long
float -> java.lang.Float
double -> java.lang.Double

Module team found this issue in the following example:

function createReminder()
{
    var beginTime = java.util.Calendar.getInstance();
    beginTime.set(2012, 9, 14, 7, 30);
    var startMillis = beginTime.getTimeInMillis();
    var values = new android.content.ContentValues();
    // !!!
    values.put(android.provider.CalendarContract.Events.DTSTART, startMillis);
}

Workaround: for example long -> java.lang.Long.valueOf(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions