OpenSearch/modules/lang-painless
Nik Everett 38d25a0369 Fix Painless's implementation of interfaces returning primitives (#23298)
Fixes Painless to properly implement scripts that return primitives
and void. Adds some simple tests that we emit sane opcodes and some
other tests that we implement primitives as expected.

Mostly this is just a fix following up from #22983 but there is one
thing I did really worth talking about, I think. So, before this script
Painless scripts could only ever return Object and they did would always
return null for paths that didn't return any values. Now that they
can return primitives the question is "what should Painless return
from paths that don't return any values?" And I answered that with
"whatever the JLS default value is". So 0/0L/0f/0d/false.
2017-02-21 17:10:55 -05:00
..
licenses merge master 2016-06-11 13:23:17 -04:00
src Fix Painless's implementation of interfaces returning primitives (#23298) 2017-02-21 17:10:55 -05:00
ant.xml Make lexer abstract 2017-01-19 11:41:50 -05:00
build.gradle Generate reference links for painless API (#22775) 2017-01-26 10:39:19 -05:00