Uploaded image for project: 'MAEviz'
  1. MAEviz
  2. MAE-1217

Eclipse 3.5.1 casting bug fix throws error message in TemporaryHousingModel

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.2
    • 3.2
    • Science Features
    • 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

              cnavarro Christopher Navarro
              cnavarro Christopher Navarro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified