hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-3262) make Hadoop compile under Apache Harmony
Date Wed, 23 Apr 2008 19:07:21 GMT

    [ 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.


Mime
View raw message