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 78519D8AD for ; Thu, 16 May 2013 20:13:22 +0000 (UTC) Received: (qmail 4385 invoked by uid 500); 16 May 2013 20:13:20 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 4344 invoked by uid 500); 16 May 2013 20:13:20 -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 4170 invoked by uid 99); 16 May 2013 20:13:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 20:13:20 +0000 Date: Thu, 16 May 2013 20:13:20 +0000 (UTC) From: "Keith Turner (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1421) use reflection to improve compatibility between Hadoop 1 and 2 JobContext objects 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-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659917#comment-13659917 ] Keith Turner commented on ACCUMULO-1421: ---------------------------------------- bq. Should we consider making a core.util.CompatibilityLayer I like the idea of having all of this crazy reflection code in one place. Do not really have a good reason. I just do not like the idea of it sprinkled throughout the codebase. > use reflection to improve compatibility between Hadoop 1 and 2 JobContext objects > --------------------------------------------------------------------------------- > > Key: ACCUMULO-1421 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1421 > Project: Accumulo > Issue Type: Bug > Components: client > Reporter: Adam Fuchs > Assignee: Adam Fuchs > > JobContext switches between an abstract class and an interface in hadoop 1 and 2, causing runtime compatibility problems in the compiled Accumulo bytecode. Avoid the runtime problem by using reflection to access the configuration object stored in the JobContext. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira