Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-543

Usage of Integer.compare() doesn't compile on jdk 1.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Here is the compilation error:

      [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java:[322,16] 1. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java (at line 322)
      [ERROR] return Integer.compare(o1.getKey(), o2.getKey());
      [ERROR] ^^^^^^^
      [ERROR] The method compare(int, int) is undefined for the type Integer
      

      Attachments

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: