Commit a0e7e57
authored
[Painless] Add boxed type to boxed type casts for method/return (#36571)
This adds implicit boxed type to boxed types casts for non-def types to create asymmetric casting relative to the def type when calling methods or returning values. This means that a user calling a method taking an Integer can call it with a Byte, Short, etc. legally which matches the way def works. This creates consistency in the casting model that did not previously exist.1 parent cd632de commit a0e7e57
File tree
4 files changed
+573
-133
lines changed- modules/lang-painless/src
- main/java/org/elasticsearch/painless
- lookup
- test/java/org/elasticsearch/painless
4 files changed
+573
-133
lines changed
0 commit comments