Closed HeartSaVioR closed 4 years ago
Raised a PR #117 to fix this.
Merged the UT as JlsTest.test_15_25__Conditional_operator__2()
, because this test is relevant for both compiler factories (janino and jdk).
InternalCompilerException
(CodeContext.java:975) reproduced.
Will now try and see if PR #117 fixes the problem.
Merged PR #117 which successfully fixes this issue.
This is one of test failures I've seen in Spark with Janino 3.1.1.
Please add below tests into ExpressionEvaluatorTest and run to see the failures:
I checked with two different UTs ad it failed on both LHS and RHS - I've flatten these tests into one.
It seems that the expected operand is
Object
but(Object) a.getInt()
addsInteger.valueOf()
(which is correct and Javac also does that) which pushesInteger
as the operand.Below code works with
javac -source 1.6 -target 1.6
: