Community
Participate
Working Groups
EDT code function main() int1 smallint? = 75; int2 smallint? = 5; result smallint; result = int1 + int2; result = int1 - int2; result = int1 * int2; end Java code public void main() { Short int1 = null; int1 = (short) 75; Short int2 = null; int2 = (short) 5; short result = (short) 0; result = (short)((ESmallint.plus(int1, int2))); result = (short)((ESmallint.minus(int1, int2))); result = (short)((ESmallint.multiply(int1, int2))); } Error msg Cannot cast from Integer to short
This hits the same underlying problem as bug 355754. I'll mention this testcase in that defect so we're sure to fix both. *** This bug has been marked as a duplicate of bug 355754 ***