-
Bug
-
Resolution: Fixed
-
Major
-
3.2
-
None
-
Green
Upgrading to 3.5.1, there was a fix that the operator += is undefined for the argument type(s) Integer, long
issue:
long number_one = 5;
Integer number_two = 1;
number_two += number_one; // Error, operator += is undefined for the argument type(s) Integer, long, note that Integer is boxing the int type and long is primitive (not Long)
The fix will be to explicitly cast the long to an int during the += operation.
The fix will need to be tested on both 3.5 and 3.5.1. For the Eclipse bug fix that caused this, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=277450