Skip to content

Not needed boxing method calls are emitted #14

@Marcono1234

Description

@Marcono1234

Version

1.1.3+, Commit 7f01508

Description

When decompiling a class which uses boxing (e.g. Integer <-> int), currently the boxing calls are always emitted.

However, in some cases these boxing calls are required (or the equivalent cast has to be emitted), e.g. when overloaded methods are called.

Source:

class Test {
    void test() {
        Integer intObj = 10;
        int i = intObj;
    }
}

Decompiled output:

class Test {
    void test() {
        Integer integer = Integer.valueOf(10);
        int i = integer.intValue();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions