-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent operand stack - ternary operator which LHS and/or RHS has auto boxing & cast #116
Comments
HeartSaVioR
added a commit
to HeartSaVioR/janino
that referenced
this issue
Mar 13, 2020
…xing conversion & widening reference coversion happens together
HeartSaVioR
added a commit
to HeartSaVioR/janino
that referenced
this issue
Mar 13, 2020
…xing conversion & widening reference conversion happens together
Raised a PR #117 to fix this. |
HeartSaVioR
added a commit
to HeartSaVioR/janino
that referenced
this issue
Mar 13, 2020
…xing conversion & widening reference conversion happens together
Merged the UT as |
|
aunkrig
added a commit
that referenced
this issue
Mar 16, 2020
Merged PR #117 which successfully fixes this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
:The text was updated successfully, but these errors were encountered: