teavm icon indicating copy to clipboard operation
teavm copied to clipboard

Unboxing is failing for int to Integer conversion

Open tdq opened this issue 6 years ago • 1 comments

For example: Integer value = isSomething() ? 7 : getNullableValue();

will throw an exception: $this.nullableValue0 is null But at the same time it works fine if 7 will be wrapped like new Integer(7) or if type was casted to Integer: (Integer)7

tdq avatar Aug 30 '19 06:08 tdq

Can you post self-contained example? Which version of TeaVM are you using?

konsoletyper avatar Aug 30 '19 08:08 konsoletyper