Autoboxing expression decompiled incorrectly
acyloxy opened this issue · 0 comments
acyloxy commented
In most cases, autoboxing expressions can be decompiled correctly by jd-core.
But I've noticed that there is a flaw when decompiling the following code:
Double.valueOf(0.0).intValue();
It will be decompiled as 0.0.intValue();
.
Obviously, it is incorrect, since basic types cannot be dereferenced.
Is there any way to fix it?
I think it could be transformed to a explicit cast (int) 0.0;
.
Is it possible?