Return-Path: X-Original-To: apmail-creadur-dev-archive@www.apache.org Delivered-To: apmail-creadur-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B135F484 for ; Thu, 28 Mar 2013 18:01:23 +0000 (UTC) Received: (qmail 79653 invoked by uid 500); 28 Mar 2013 18:01:23 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 78253 invoked by uid 500); 28 Mar 2013 18:01:18 -0000 Mailing-List: contact dev-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list dev@creadur.apache.org Received: (qmail 78197 invoked by uid 99); 28 Mar 2013 18:01:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Mar 2013 18:01:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.blevins@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Mar 2013 18:01:12 +0000 Received: by mail-la0-f49.google.com with SMTP id fs13so17887452lab.8 for ; Thu, 28 Mar 2013 11:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Y4CtdKiW1H0J6LjHCiql8fdquDlW7ZkzCEAo+p5PQKo=; b=U9m5cx1vf7Fx0hdMWRBkFvXvEjoQJPSPqumullC8/d33notHdt4YoLK1uuOCM2buVy IXCRgCWCRY+TE5F/W9NWcSvtBF+c7k9NsnJX/P34yc097QONOKbDF1AkyAySgfKtpE5t EIEN7FM60TV6WzGPkaysRmovZKaJxO1uWAuAKofA372WqrutkTBiyNmRFR6AIPsMRH3w 3W5FgTuAIVB7pfRjHRGbQ0d7ot7MEi1mpeXIWjGrDyiFWw/xtqzk9cUfB8mxrUbwOEfb vT+qiICe76OW7VGWfAzpTr/eMOpv+6x6PwPP0qSMyqgdhCXX2MefKRTY/VhVQU5e/fHc /qIg== MIME-Version: 1.0 X-Received: by 10.152.110.167 with SMTP id ib7mr12923999lab.22.1364493650907; Thu, 28 Mar 2013 11:00:50 -0700 (PDT) Received: by 10.152.122.211 with HTTP; Thu, 28 Mar 2013 11:00:50 -0700 (PDT) In-Reply-To: <51517135.80807@blueyonder.co.uk> References: <51517135.80807@blueyonder.co.uk> Date: Thu, 28 Mar 2013 19:00:50 +0100 Message-ID: Subject: Re: [tentacles] assertions From: David Blevins To: dev@creadur.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 26, 2013 at 10:58 AM, Robert Burrell Donkin wrote: > Tentacles is a little unusual in using Java assertions. When assertions are > off, then [1] no longer works as expected (rather than running with > debugging checks off). > > For applications in runnable jars, I think using assertions to allow > debugging is a cool idea - controlling logging levels is sometimes tricky in > this situation. However - by the principle of least surprise - when on the > golden path, I think tentacles should function correctly whether assertions > are on or off. > > Opinions? Totally agree. I've never once remembered to turn them on, have always ran into the issue of the dir not getting created, and *then* remembered about assertions needing to be on. And I wrote the stinking code. I rarely used assertions before and have completely stopped using them since. It's a clear no-no for code that must run, and really, who wants even their checks to be optional? Feel free to hack it up. Side note, wow I didn't know anyone but be had ever used tentacles :) -David