Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-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 1D9A2789F for ; Wed, 26 Oct 2011 21:43:40 +0000 (UTC) Received: (qmail 54552 invoked by uid 500); 26 Oct 2011 21:43:39 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 54517 invoked by uid 500); 26 Oct 2011 21:43:39 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 54510 invoked by uid 99); 26 Oct 2011 21:43:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 21:43:39 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lu4242@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 21:43:33 +0000 Received: by pzd13 with SMTP id 13so5596871pzd.6 for ; Wed, 26 Oct 2011 14:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UvwMn4dDLCU0cJnR8mGy8kqUbj2f4V0zPO20BpvX2/0=; b=FP+y8en1OtC3KHuKVPoXZShYWD1LaErHsmBdCFitvygWBeybEPsJ4r5KSz+B1wVt7c Yr+3ZPrl6Be5/Nz09ogei2bIwAuF82iMvPcO8I24aEyHfp+JTsvAf7Hkdoz47MKI7ScI nEIGlgPcaZEBP4xpjrrmAzdIrxoCQWL+jsNuc= MIME-Version: 1.0 Received: by 10.68.32.194 with SMTP id l2mr68683557pbi.57.1319665392522; Wed, 26 Oct 2011 14:43:12 -0700 (PDT) Received: by 10.142.187.11 with HTTP; Wed, 26 Oct 2011 14:43:12 -0700 (PDT) In-Reply-To: <1319663830.11779.YahooMailNeo@web27802.mail.ukl.yahoo.com> References: <1319653085.69405.YahooMailNeo@web27808.mail.ukl.yahoo.com> <1319660775.71579.YahooMailNeo@web27802.mail.ukl.yahoo.com> <1319663830.11779.YahooMailNeo@web27802.mail.ukl.yahoo.com> Date: Wed, 26 Oct 2011 16:43:12 -0500 Message-ID: Subject: Re: MYFACES-3368 status From: Leonardo Uribe To: MyFaces Development , Mark Struberg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi In NavigationHandlerImpl#_navigationCases, that var should be volatile, but note if it is not nothing happens, just the code will be executed more times than necessary. regards, Leonardo Uribe 2011/10/26 Mark Struberg : > For example > NavigationHandlerImpl#_navigationCases > > I already fixed a few occurrences. > > There are also a few other checkstyle errors waiting to get fixed like me= thods which are 450 lines long.. > > Would be cool if you could take a look at it - txs! > > > LieGrue, > strub > > > > ----- Original Message ----- >> From: Leonardo Uribe >> To: myfaces-dev ; Mark Struberg >> Cc: >> Sent: Wednesday, October 26, 2011 10:45 PM >> Subject: Re: MYFACES-3368 status >> >> Yes I know that, but where in myfaces we have a problem like that? so >> we can discuss it in deep. >> >> 2011/10/26 Mark Struberg : >>> =A0Again (think I posted this before already), a very good source for j= ava mem >> spec behaviour is the comment of Brian Goetz >>> >>> =A0http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html >>> >>> =A0This also explains why you need to declare the field volatile - don'= t >> wanna stress this, but I told this also before... ;) >>> >>> >>> =A0LieGrue, >>> =A0strub >>> >>> >>> >>> >>> >>> =A0----- Original Message ----- >>>> =A0From: Leonardo Uribe >>>> =A0To: MyFaces Development ; Mark Struberg >> >>>> =A0Cc: >>>> =A0Sent: Wednesday, October 26, 2011 8:40 PM >>>> =A0Subject: Re: MYFACES-3368 status >>>> >>>> =A0Hi >>>> >>>> =A0I'm keeping an eye on the changes done. I don't remember any >> problem >>>> =A0about 'double lock' on myfaces. Could you please be more >> specific? In >>>> =A0my understanding everything works as expected. >>>> >>>> =A0regards, >>>> >>>> =A0Leonardo Uribe >>>> >>>> =A02011/10/26 Mark Struberg : >>>>> =A0=A0Hi folks! >>>>> >>>>> =A0=A0I'm down to 24 checkstyle issues (with LineLength=3D160, >> otherwise ~600 >>>> =A0more) which are really non-trivial. >>>>> >>>>> =A0=A0A few of them are 'equals() without hashCode()' which are >>>> =A0definitely problematic >>>>> =A0=A0Then we have a few variable namings which I didn't want to >> change >>>> =A0without talking to you. >>>>> =A0=A0And of course there are some 'double lock idiom' issues. >>>>> =A0=A0It's safe to use double-locking as of Java5, but ONLY if the >> locked >>>> =A0variable is declared volatile! We barely have this, so I left the c= heck >>>> =A0enabled... >>>>> >>>>> >>>>> =A0=A0Who is taking care of those remaining issues? Leo? >>>>> >>>>> >>>>> =A0=A0LieGrue, >>>>> =A0=A0strub >>>>> >>>>> >>>> >>> >> >