Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38E2317A09 for ; Sat, 4 Apr 2015 03:03:34 +0000 (UTC) Received: (qmail 646 invoked by uid 500); 4 Apr 2015 03:03:34 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 612 invoked by uid 500); 4 Apr 2015 03:03:34 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 601 invoked by uid 99); 4 Apr 2015 03:03:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2015 03:03:33 +0000 Date: Sat, 4 Apr 2015 03:03:33 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-2486) Use covariant return types in SKVI.deepCopy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Elser updated ACCUMULO-2486: --------------------------------- Fix Version/s: (was: 1.7.0) 1.8.0 > Use covariant return types in SKVI.deepCopy > ------------------------------------------- > > Key: ACCUMULO-2486 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2486 > Project: Accumulo > Issue Type: Improvement > Reporter: Mike Drob > Fix For: 1.8.0 > > > Starting with Java 5, subclasses with method overrides can declare covariant return types. In general, I believe that we want to do this, as it provides stronger type guarantees with not a lot of extra cost. > Example: > {code} > public interface SortedKeyValueIterator { > SortedKeyValueIterator deepCopy(IteratorEnvironment env); > } > public interface InterruptibleIterator extends SortedKeyValueIterator { > @Override > InterruptibleIterator deepCopy(IteratorEnvironment env); > } > {code} > I believe this change will be fully backwards compatible with the existing APIs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)