Return-Path: X-Original-To: apmail-openwebbeans-user-archive@www.apache.org Delivered-To: apmail-openwebbeans-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 474B2179BE for ; Fri, 27 Feb 2015 17:08:08 +0000 (UTC) Received: (qmail 30065 invoked by uid 500); 27 Feb 2015 17:07:33 -0000 Delivered-To: apmail-openwebbeans-user-archive@openwebbeans.apache.org Received: (qmail 30039 invoked by uid 500); 27 Feb 2015 17:07:33 -0000 Mailing-List: contact user-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@openwebbeans.apache.org Delivered-To: mailing list user@openwebbeans.apache.org Received: (qmail 30029 invoked by uid 99); 27 Feb 2015 17:07:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2015 17:07:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rmannibucau@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qc0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2015 17:07:28 +0000 Received: by qcrw7 with SMTP id w7so14843929qcr.4 for ; Fri, 27 Feb 2015 09:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=e1a1wjR87cajLgjHfSgzVED1FIBusOoifd4lPb7OPUw=; b=aJGWkCM53p2noR+kqL7Ct67Z//jtszuuhlJyoZN04TMJH2CdKPSvBOATqLyx9Xr8PP 9rj7yrJVDrP4B56Jqh0FJsSwp51sDO5kDy5eJwZKCGpwcPWbIo6aiF/2TXf5PTYwylTa E+f3On34946C//wJIy4rUsPYedobEOWaL4YWIqM7H4vD/CN31HWIjpYG56MSyD8+59Lt bBWqVsDpkGsdLPXVCfiUKYRhgNXatX6L48GGvWO0bpfNr9x7HC7KXLFTA4qEqXF9IbIR FXzd8p79WHmCbGOHbz2UfI8/Iv8Glj36LjZEq8TULa+twTAEtBoZQsfXrHDO7EXSmt3y gQVQ== MIME-Version: 1.0 X-Received: by 10.140.151.141 with SMTP id 135mr31916603qhx.8.1425056782686; Fri, 27 Feb 2015 09:06:22 -0800 (PST) Received: by 10.96.219.69 with HTTP; Fri, 27 Feb 2015 09:06:22 -0800 (PST) Received: by 10.96.219.69 with HTTP; Fri, 27 Feb 2015 09:06:22 -0800 (PST) In-Reply-To: References: Date: Fri, 27 Feb 2015 18:06:22 +0100 Message-ID: Subject: Re: Memleak using Instance<> with dependent From: Romain Manni-Bucau To: user@openwebbeans.apache.org Content-Type: multipart/alternative; boundary=001a113552c6511e9a051014e301 X-Virus-Checked: Checked by ClamAV on apache.org --001a113552c6511e9a051014e301 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes. Will be destoyed with the bean where it is injected IIRC so the app here. Le 27 f=C3=A9vr. 2015 16:59, a =C3=A9crit : > Hello! I have a bean with @ApplicationScoped. When I inject > Instance instance and my actual beans implementing MyInstanc= e > are dependentscoped they get recreated over and over and are not gc'd. > > Expected behavior? > > Cheers --001a113552c6511e9a051014e301 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Yes.

Will be destoyed with the bean where it is injected IIRC so = the app here.

Le 27 f=C3=A9vr. 2015 16:59, <karl.kilden@gmail.com> a =C3=A9crit :
Hello! I have a bean wi= th @ApplicationScoped. When I inject Instance<MyInterface> instance a= nd my actual beans implementing MyInstance are dependentscoped they get rec= reated over and over and are not gc'd.

Expected behavior?

Cheers
--001a113552c6511e9a051014e301--