From dev-return-5151-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Fri Aug 3 17:05:30 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 C086B180647 for ; Fri, 3 Aug 2018 17:05:29 +0200 (CEST) Received: (qmail 11149 invoked by uid 500); 3 Aug 2018 15:05:28 -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 11132 invoked by uid 99); 3 Aug 2018 15:05:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2018 15:05:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B92CEC1D14 for ; Fri, 3 Aug 2018 15:05:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=thomsonreuters.com header.b=JObt9KyC; dkim=pass (1024-bit key) header.d=trten.onmicrosoft.com header.b=Vf++iiHR Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tUPZIxwDum8w for ; Fri, 3 Aug 2018 15:05:25 +0000 (UTC) Received: from mailout7-tr.thomsonreuters.com (mailout7-tr.thomsonreuters.com [159.220.48.11]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 23C565F2AA for ; Fri, 3 Aug 2018 15:05:23 +0000 (UTC) Received: from c354hcwus2r02.int.westgroup.com (relay2 [10.51.2.62]) by mailout7-tr.thomsonreuters.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id w73F5Jp2001432 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 3 Aug 2018 15:05:19 GMT X-DKIM: OpenDKIM Filter v2.4.3 mailout7-tr.thomsonreuters.com w73F5Jp2001432 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=thomsonreuters.com; s=defaultdkim; t=1533308719; bh=o0pBYtUpYvevtNBgZN0L/8/c+9tBJG4fdTOqW9IJT6Y=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=JObt9KyC3KcCoAWrfWccTuydFxnM6Dtvka3SDVohu7tf4GzGunEVWNreRZYCF1F3P WmAwqHabHm7hgjCBFunRRL+06PUrFf+Yj7iS7uqX5QHEDq+sO6D8Wglnq9N6DunSXt NUYOTcjwlgO943OsjWgzgGn3z0SyJ81UQMA2ussw= Received: from EAGH-ERFPHUB04.ERF.thomson.com ([10.51.52.52]) by c354hcwus2r02.int.westgroup.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id w73F5GMk023138; Fri, 3 Aug 2018 15:05:17 GMT Received: from C248RDQEFM305.ERF.thomson.com (10.204.200.86) by EAGH-ERFPHUB04.ERF.thomson.com (163.231.29.195) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 3 Aug 2018 09:04:03 -0600 Received: from C268UQBEFM304.ERF.thomson.com (10.204.200.85) by C248RDQEFM305.ERF.thomson.com (10.204.200.86) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 3 Aug 2018 10:03:37 -0500 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (10.204.52.23) by C268UQBEFM304.ERF.thomson.com (10.204.200.85) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Fri, 3 Aug 2018 10:03:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TRTEN.onmicrosoft.com; s=selector1-thomsonreuters-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bptPT1LxCwR56BaFpxt5bnGkkmJ6dsdM4AfL+MAqt9M=; b=Vf++iiHRZ9HwdC0FEmhXcA1G9c/0E45fMDN+p/aZUjl0b7prxoVU6iX87dHGzNZ0sfmv7441AhMDlrf3xXV22Z1MaXp3I8MVq5lZ/KxAXASg5dlYjemSDSQyLHQ0ylhQwS+bACTnB2hm7/T5WLzPlzasmgAUZHoF8ZozZwOtaCs= Received: from BN7PR03MB3540.namprd03.prod.outlook.com (20.176.20.13) by BN7PR03MB3427.namprd03.prod.outlook.com (20.176.17.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 3 Aug 2018 15:03:35 +0000 Received: from BN7PR03MB3540.namprd03.prod.outlook.com ([fe80::8531:4f7a:9a53:30d5]) by BN7PR03MB3540.namprd03.prod.outlook.com ([fe80::8531:4f7a:9a53:30d5%4]) with mapi id 15.20.1017.010; Fri, 3 Aug 2018 15:03:35 +0000 From: "Milles, Eric (TR Technology & Ops)" To: "dev@groovy.apache.org" , "paulk@asert.com.au" Subject: Re: [DISCUSS] trait behavior with instance and static methods of otherwise same signature Thread-Topic: [DISCUSS] trait behavior with instance and static methods of otherwise same signature Thread-Index: AQHUKzbSSlIunkpF1EqgljwqQbzCdKSuHb9t Date: Fri, 3 Aug 2018 15:03:34 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=eric.milles@thomsonreuters.com; x-originating-ip: [198.179.137.235] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN7PR03MB3427;20:GusnnT75WAoz+61ECoVX3Dq8++iXKrC9YTUu5mdAzMgmyAYDlSA+YLhnBiFfy3dtlySKFSQIVEQihgiewLmd0WxKgZ6avF+Bsfv+I02VurSwAP241A1l4fO6nk6np3DrLQt3i3WJRSr0tSHTWWo+ausrk2gtxn9KRwDqL+woxOwhvfspVZQXn8WRIjmWRAdTAmzhm+nCRl5rlkYjxO5GP3TltWL23QbuXncCBJeW1H8Cuv7PLppF3U8GnJQU7OPS7tvvmLYsx6X5pqIxZD/GY8x9I3KzuJYvxKVeH9MNr7gJ30YQDT1kR32M+s0sRL6zNfSMWGjyx3yn1C7bOLlIRiYhq4ECOZC9kD3GKTq1rFDkY+kPB5b0tyQY9Rx71MQ4wHdw52SykCgmHUgueCiLop/XML9K4LN6jgmFbdLC5tx2IDEpjmdbT7E3haJ5gtYJWim/qYjDvLc9cnzchXhIn2xvbAS/kfZZPNuqv0Yr416RNSibyLrQp+8rmUUpaZ1Q x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 20e71f26-7f7b-4d9c-4661-08d5f9524900 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BN7PR03MB3427; x-ms-traffictypediagnostic: BN7PR03MB3427: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(11241501184)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:BN7PR03MB3427;BCL:0;PCL:0;RULEID:;SRVR:BN7PR03MB3427; x-forefront-prvs: 0753EA505A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(136003)(366004)(376002)(396003)(346002)(199004)(189003)(478600001)(229853002)(486006)(476003)(86362001)(105586002)(74316002)(25786009)(7736002)(256004)(14454004)(6436002)(81156014)(316002)(8676002)(2900100001)(55016002)(110136005)(99286004)(9686003)(54896002)(8936002)(53936002)(6246003)(66066001)(81166006)(446003)(11346002)(33656002)(19627405001)(106356001)(2501003)(97736004)(102836004)(7696005)(26005)(6506007)(6116002)(2906002)(76176011)(6606003)(5250100002)(68736007)(5660300001)(3846002)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR03MB3427;H:BN7PR03MB3540.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: thomsonreuters.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: mdcwDkabXqQ3f3nQph3n4RrNc/MNM+lFlTGAGm1plsR5cOAHtReU4jDlwBqV8zgEuf8HuCXwCTwVgUfKIeS3P+upa0stOYLWCsUJzCd9zhJH7gx8Nm01R5tSY09FxtpLHAu8PQgDfIcQORVTq0hf05estB24YL64m1oRvyKapGUictnerI/rUJLzjcY/VhcuxZrOlxP7mAzugGtBbxqn0JNpvVvQJd9muenfAbbJxGY/LRGBXGCV7BwO9K/7PRHr4HcHc5ftZ7zLRaoSHutmH4+KQA6YfiGkRVmFTBYckUz3P29MnICclzg0I7HJHVnVfEbQOCYQ4Fi/i1c7SfSQY2tlYy+bsipVqLeXFSwHM48= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BN7PR03MB3540444D6EFED200A52548338A230BN7PR03MB3540namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 20e71f26-7f7b-4d9c-4661-08d5f9524900 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Aug 2018 15:03:34.9682 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 62ccb864-6a1a-4b5d-8e1c-397dec1a8258 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB3427 X-OriginatorOrg: thomsonreuters.com X-TM-AS-Product-Ver: SMEX-12.0.0.1727-8.200.1013-24008.007 X-TM-AS-Result: No--2.458200-0.000000-31 X-TM-AS-MatchedID: 143723-150567-706290-705111-706737-705461-848152-703112-7 00079-111600-111604-188119-705718-701827-702638-111605-700074-700264-700732 -700345-700450-706065-188092-148004-148007-148020-148036-148051-41000-42003 -63 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-CFilter-Loop: Reflected --_000_BN7PR03MB3540444D6EFED200A52548338A230BN7PR03MB3540namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Shouldn't an instance method always win out over a static method? I too wo= uld always expect a compile error for attempting to override static with in= stance method or vice-versa. What would/should happen if trait adds method in future that is in conflict= with legal compiled state of implementing class? --_000_BN7PR03MB3540444D6EFED200A52548338A230BN7PR03MB3540namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Shouldn't an instance method alwa= ys win out over a static method?  I too would always expect a compile = error for attempting to override static with instance method or vice-versa.=


What would/should happen if trait= adds method in future that is in conflict with legal compiled state of imp= lementing class?

--_000_BN7PR03MB3540444D6EFED200A52548338A230BN7PR03MB3540namp_--