[
https://issues.apache.org/jira/browse/HADOOP-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591739#action_12591739
]
Doug Cutting commented on HADOOP-3262:
--------------------------------------
Sigh. I can't find a way to get a class that 'implements Delayed' to compile
in both Sun Java and Harmony.
Given:
{noformat}
public interface Comparable<T> {
int compareTo(T o);
}
public interface Delayed extends Comparable<Delayed> {}
{noformat}
Harmony requires the first of the following methods, but doesn't mind the
second, while Sun permits only the second.
{noformat}
public class DelayedImpl implements Delayed {
public int compareTo(Object o);
public int compareTo(Delayed o);
}
{noformat}
My hunch is that Sun is correct here and that we should file a bug against
Harmony.
> make Hadoop compile under Apache Harmony
> ----------------------------------------
>
> Key: HADOOP-3262
> URL: https://issues.apache.org/jira/browse/HADOOP-3262
> Project: Hadoop Core
> Issue Type: Bug
> Components: build
> Reporter: Doug Cutting
> Assignee: Doug Cutting
> Attachments: HADOOP-3262.patch
>
>
> Some small changes are required to get Hadoop Core to compile with Apache
> Harmony.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.