You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2008/06/20 11:31:45 UTC

[jira] Resolved: (HARMONY-5807) [classlib][concurrent] can't 'implement Delayed' compatibly with Sun Java

     [ https://issues.apache.org/jira/browse/HARMONY-5807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-5807.
----------------------------------

    Resolution: Fixed
      Assignee: Tim Ellison

Fixed in CONCURRENT module at repo revision r669837.

Doug: Please check that it was fixed as you expected.


> [classlib][concurrent] can't 'implement Delayed' compatibly with Sun Java
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-5807
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5807
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M5
>            Reporter: Doug Cutting
>            Assignee: Tim Ellison
>         Attachments: DelayedImpl.java, HARMONY-5807.patch
>
>
> In HADOOP-3262 I tried to get Hadoop to compile under Harmony, and ran into a problem.
> I can't find a way to get a class that 'implements Delayed' to compile in both Sun Java and Harmony.
> Given:
> public interface Comparable<T> {
>   int compareTo(T o);
> }
> public interface Delayed extends Comparable<Delayed> {}
> What is the correct signature for compareTo() in a Delayed implementation.  Harmony requires the first of the following methods, and doesn't mind the second, while Sun permits only the second.
> public class DelayedImpl implements Delayed {
>   public int compareTo(Object o);
>   public int compareTo(Delayed o);
> }
> My guess is that Sun is correct and that this is a bug in Harmony.  Is that right?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.