Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D0241148D for ; Sun, 8 Jun 2014 22:09:03 +0000 (UTC) Received: (qmail 51351 invoked by uid 500); 8 Jun 2014 22:09:03 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 51309 invoked by uid 500); 8 Jun 2014 22:09:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 51294 invoked by uid 99); 8 Jun 2014 22:09:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2014 22:09:02 +0000 Date: Sun, 8 Jun 2014 22:09:02 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7106) [89-fb] Fix the NPE in unit tests for JDK7 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/HBASE-7106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021453#comment-14021453 ] Andrew Purtell commented on HBASE-7106: --------------------------------------- No reason for this to be open still, right? > [89-fb] Fix the NPE in unit tests for JDK7 > ------------------------------------------ > > Key: HBASE-7106 > URL: https://issues.apache.org/jira/browse/HBASE-7106 > Project: HBase > Issue Type: Improvement > Reporter: Liyin Tang > Priority: Trivial > > In JDK7, it will throw out NPE if put a NULL into a TreeSet. And in the unit tests, user can add a NULL as qualifier into the family map for GET or SCAN. > So we shall do the followings: > 1) Make sure the semantics of NULL column qualifier is equal to that of the EMPYT_BYTE_ARRAY column qualifier. > 2) An easy fix is to use the EMPYT_BYTE_ARRAY qualifier to replace NULL qualifier in the family map for the GET or SCAN objects, and everything else shall be backward compatible. > 3) Add a jdk option in the pom.xml (Assuming user installed the fb packaged jdk) > eg: mvn test -Dtest=TestFromClientSide -Pjdk7 -- This message was sent by Atlassian JIRA (v6.2#6252)