[
https://issues.apache.org/jira/browse/SLIDER-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Yu resolved SLIDER-543.
---------------------------
Resolution: Fixed
> Usage of Integer.compare() doesn't compile on jdk 1.6
> -----------------------------------------------------
>
> Key: SLIDER-543
> URL: https://issues.apache.org/jira/browse/SLIDER-543
> Project: Slider
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
>
> Here is the compilation error:
> {code}
> [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
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)