From dev-return-4761-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Wed May 16 12:52:43 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id ADC4C180669 for ; Wed, 16 May 2018 12:52:42 +0200 (CEST) Received: (qmail 4692 invoked by uid 500); 16 May 2018 10:52:41 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 4682 invoked by uid 99); 16 May 2018 10:52:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2018 10:52:40 +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 827751A2D49 for ; Wed, 16 May 2018 10:52:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.485 X-Spam-Level: *** X-Spam-Status: No, score=3.485 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2YabVasP47j2 for ; Wed, 16 May 2018 10:52:39 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6B1245F16F for ; Wed, 16 May 2018 10:52:39 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id D2D65633DDCB for ; Wed, 16 May 2018 03:52:38 -0700 (MST) Date: Wed, 16 May 2018 03:52:38 -0700 (MST) From: adithyank To: dev@groovy.incubator.apache.org Message-ID: <1526467958861-0.post@n5.nabble.com> In-Reply-To: References: <1526144781228-0.post@n5.nabble.com> <1526368531254-0.post@n5.nabble.com> <1526369771723-0.post@n5.nabble.com> Subject: Re: Java object conversion using ConfigSlurper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Mario Garcia, Groovy already has Map coercion feature with which the methods of any class can be delegated to the closures in Map. This uses `as` keyword. If we implement `asType(Class)` in `ConfigObject` (ConfigObject already implements Map), some of the functionalities of existing coercion may be affected. I am not sure ! If we implement 'getAs(Class)`, existing coercion will be unaffected. So, I will prefer `getAs(Class)` first. Note : Any ways, while testing, I will test these behaviors... Pls advice -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html