Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74EAD17E89 for ; Mon, 7 Sep 2015 15:39:24 +0000 (UTC) Received: (qmail 24450 invoked by uid 500); 7 Sep 2015 15:39:13 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 24411 invoked by uid 500); 7 Sep 2015 15:39:13 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 24399 invoked by uid 99); 7 Sep 2015 15:39:13 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2015 15:39:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2DBAB1A07C1 for ; Mon, 7 Sep 2015 15:39:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.002 X-Spam-Level: *** X-Spam-Status: No, score=3.002 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RqMijJjwvLPI for ; Mon, 7 Sep 2015 15:38:59 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 0B953204DB for ; Mon, 7 Sep 2015 15:38:59 +0000 (UTC) Received: by lbcao8 with SMTP id ao8so40792675lbc.3 for ; Mon, 07 Sep 2015 08:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=kG9HZTGSMRySyXT6/pZ3K3TqJ1MUQJYzHN0w6/OhYjA=; b=pnzsf4PbiEisV4ijnTmT5g7sjKk+M1PQlOf5wrbPGBsMInvanBrwqfuSwwASnOvcbH ALMuchDg2E0IQynM/b27FMBzhVsxQ43avLSflpIeOfkcDXJISb8PN2ypPxJiEAEstQxm hWRM7FjCqGcLPFmiXCjyYFtPKMwgG2I8xU64ZhfcYvMpuzwwN5ppz+deBN4NQwvFDMcR ns1nPixVpKHPEZQNENCNb7wa52YIhF/Rt59oXL/JBp2VDvCFH/xm1osTTqYX/aSZoQ76 AzRckpweA5n2tQaDr78cFLCPGxUabPp3tEWgf9v9Kzi7b2LZriW2vzNqidKAa+60JA3S 9ByQ== X-Received: by 10.112.205.6 with SMTP id lc6mr17090889lbc.95.1441640332613; Mon, 07 Sep 2015 08:38:52 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.25.133.135 with HTTP; Mon, 7 Sep 2015 08:38:33 -0700 (PDT) In-Reply-To: <55ED5BC8.8060708@nosphere.org> References: <55ED5BC8.8060708@nosphere.org> From: Niclas Hedhman Date: Mon, 7 Sep 2015 23:38:33 +0800 X-Google-Sender-Auth: 5oWGmdytHNUJ89BJbSaDlVu56Qw Message-ID: Subject: Re: Parameter Names To: dev Content-Type: multipart/alternative; boundary=001a11c3ca10eb60cb051f2a0bc3 --001a11c3ca10eb60cb051f2a0bc3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Good!! Add to Jira, please. On Mon, Sep 7, 2015 at 5:41 PM, Paul Merlin wrote: > Niclas Hedhman a =C3=A9crit : > > I just noticed that parameter names are now runtime accessible. > > > https://docs.oracle.com/javase/tutorial/reflect/member/methodparameterref= lection.html > > > Get the tinfoil thinking hat out, and crank up what this can be used > for.... > > :-) > > Here is a first possible use-case: create more meaningful error messages. > Null barrier and constraints are good candidates. > > > --=20 Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --001a11c3ca10eb60cb051f2a0bc3--