Closed Marcono1234 closed 4 years ago
1.1.3+, Commit 7f01508
javac 11.0.5
When an overloading method with array parameter exists and an overload with parameter type Object is called with an array, the required cast is not added.
Object
Source:
class ArrayMethodOverloading { void use(Object[] o) { } void use(Object o) { } void test() { use((Object) new Object[] {""}); } }
Decompiled output:
class ArrayMethodOverloading { void use(Object[] paramArrayOfObject) {} void use(Object paramObject) {} void test() { use(new Object[] { "" }); } }
Version
1.1.3+, Commit 7f01508
Compiler
javac 11.0.5
Description
When an overloading method with array parameter exists and an overload with parameter type
Object
is called with an array, the required cast is not added.Source:
Decompiled output: