Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DDB962009F8 for ; Fri, 3 Jun 2016 11:30:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DC61E160A2A; Fri, 3 Jun 2016 09:30:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 31EC0160A25 for ; Fri, 3 Jun 2016 11:30:35 +0200 (CEST) Received: (qmail 66557 invoked by uid 500); 3 Jun 2016 09:30:34 -0000 Mailing-List: contact commits-help@tamaya.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tamaya.incubator.apache.org Delivered-To: mailing list commits@tamaya.incubator.apache.org Received: (qmail 66548 invoked by uid 99); 3 Jun 2016 09:30:34 -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; Fri, 03 Jun 2016 09:30:34 +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 0D6C71A138B for ; Fri, 3 Jun 2016 09:30:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AkVuDNAOS3ob for ; Fri, 3 Jun 2016 09:30:33 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 781435F54F for ; Fri, 3 Jun 2016 09:30:32 +0000 (UTC) Received: (qmail 65532 invoked by uid 99); 3 Jun 2016 09:30:31 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2016 09:30:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7ED11DFC61; Fri, 3 Jun 2016 09:30:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anatole@apache.org To: commits@tamaya.incubator.apache.org Message-Id: <06dea4649133411fa17701a00e2d4e0c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-tamaya git commit: TAMAYA-163: Prevent the extension registering a ConverterBean without types. Date: Fri, 3 Jun 2016 09:30:31 +0000 (UTC) archived-at: Fri, 03 Jun 2016 09:30:36 -0000 Repository: incubator-tamaya Updated Branches: refs/heads/master ee263e4e0 -> 27f0d7971 TAMAYA-163: Prevent the extension registering a ConverterBean without types. Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/27f0d797 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/27f0d797 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/27f0d797 Branch: refs/heads/master Commit: 27f0d7971d187c21099ab185056975aa97538c7e Parents: ee263e4 Author: anatole Authored: Fri Jun 3 11:30:10 2016 +0200 Committer: anatole Committed: Fri Jun 3 11:30:25 2016 +0200 ---------------------------------------------------------------------- .../apache/tamaya/integration/cdi/ConfigurationExtension.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/27f0d797/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java ---------------------------------------------------------------------- diff --git a/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java b/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java index a6fee37..376836d 100644 --- a/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java +++ b/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java @@ -130,7 +130,9 @@ public class ConfigurationExtension implements Extension { } public void addConverter(@Observes final AfterBeanDiscovery abd, final BeanManager bm) { - abd.addBean(new ConverterBean(convBean, types)); + if(!types.isEmpty()) { + abd.addBean(new ConverterBean(convBean, types)); + } } private void tryLoadOpererator(Class operatorClass) {