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 C851F174D9 for ; Tue, 7 Oct 2014 17:07:34 +0000 (UTC) Received: (qmail 40546 invoked by uid 500); 7 Oct 2014 17:07:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 40497 invoked by uid 500); 7 Oct 2014 17:07:34 -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 40447 invoked by uid 99); 7 Oct 2014 17:07:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 17:07:34 +0000 Date: Tue, 7 Oct 2014 17:07:34 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11912) Catch some bad practices at compile time with error-prone 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-11912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162129#comment-14162129 ] Andrew Purtell commented on HBASE-11912: ---------------------------------------- The static analysis described in the paper referred to by HBASE-12187 might be a good thing to try implementing with this framework, to determine what's possible with it. > Catch some bad practices at compile time with error-prone > --------------------------------------------------------- > > Key: HBASE-11912 > URL: https://issues.apache.org/jira/browse/HBASE-11912 > Project: HBase > Issue Type: Improvement > Reporter: Andrew Purtell > Attachments: HBASE-11912.patch, HBASE-11912.patch > > > Google's error-prone (https://code.google.com/p/error-prone/) wraps javac with some additional static analysis that will generate additional warnings or errors at compile time if certain bug patterns (https://code.google.com/p/error-prone/wiki/BugPatterns) are detected. What's nice about this approach, as opposed to findbugs, is the compile time detection and erroring out prevent the detected problems from getting into the codebase up front. -- This message was sent by Atlassian JIRA (v6.3.4#6332)