Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 AE16FD1D3 for ; Fri, 20 Jul 2012 12:42:26 +0000 (UTC) Received: (qmail 41795 invoked by uid 500); 20 Jul 2012 12:42:26 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 41709 invoked by uid 500); 20 Jul 2012 12:42:24 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 41680 invoked by uid 99); 20 Jul 2012 12:42:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 12:42:23 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@adobe.com designates 64.18.1.27 as permitted sender) Received: from [64.18.1.27] (HELO exprod6og111.obsmtp.com) (64.18.1.27) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 12:42:13 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob111.postini.com ([64.18.5.12]) with SMTP ID DSNKUAlSDrypaQBuxgOI/ceclTsidSIqHTno@postini.com; Fri, 20 Jul 2012 05:41:52 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q6KCdQk0024382; Fri, 20 Jul 2012 05:39:26 -0700 (PDT) Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q6KCflYr014393; Fri, 20 Jul 2012 05:41:48 -0700 (PDT) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.192.1; Fri, 20 Jul 2012 05:41:47 -0700 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurhub01.eur.adobe.com ([10.128.4.30]) with mapi; Fri, 20 Jul 2012 13:41:45 +0100 From: Alexander Klimetschek To: "julian.reschke@gmx.de" CC: "dev@jackrabbit.apache.org" Date: Fri, 20 Jul 2012 13:41:45 +0100 Subject: Re: hasProperty vs getProperty Thread-Topic: hasProperty vs getProperty Thread-Index: Ac1mdQWdAxfhKcJ/QQu9hnHRRpf+EA== Message-ID: <34BB265D-F9D9-469C-8DA7-52D62B227D93@adobe.com> References: <4FD73DBA.9090001@gmx.de> <6D09B721-A46C-4F69-8479-1D66506218C3@adobe.com> <50086C71.10505@gmx.de> <6293F929-EE92-4982-AD29-E037D6D1093D@adobe.com> <5009022E.3000501@gmx.de> In-Reply-To: <5009022E.3000501@gmx.de> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 On 20.07.2012, at 09:01, Julian Reschke wrote: > I agree with that, but that's how JCR works. Well, you have both options: if you use the has*() or (item|property|node)E= xists() methods, and since PNFEx inherits from RepositoryEx, you can skip t= he try/catch for the application logic. Cheers, Alex