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 D2655200B83 for ; Sat, 3 Sep 2016 03:42:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D0D4E160ACB; Sat, 3 Sep 2016 01:42:05 +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 EF8BD160A8C for ; Sat, 3 Sep 2016 03:42:04 +0200 (CEST) Received: (qmail 87584 invoked by uid 500); 3 Sep 2016 01:42:04 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 87570 invoked by uid 99); 3 Sep 2016 01:42:03 -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; Sat, 03 Sep 2016 01:42:03 +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 5868DC0439 for ; Sat, 3 Sep 2016 01:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id dGe4-YawUwtF for ; Sat, 3 Sep 2016 01:42:01 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7418F5F307 for ; Sat, 3 Sep 2016 01:42:01 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id c15so185253582oig.0 for ; Fri, 02 Sep 2016 18:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0bKaJBZObO4PDQmflGPNqpE7eTkzu/cuBY314MK+P30=; b=lPV7ae3XQxM4sD96db/ItyN3G8K0sFrjAm+CV0kTlydbfm6XE9N/nzGq9jc4TFgbGJ Vx2Dvkobnu7EpqfEfCFsiyWi6h2jqyhctxJv9nVArloe5r5xhkJBL2NEFEgYZB33JauL Z/ivinkH1ZpZjrPp8PBIi6ukyCWMl+prXrZHP7tz3vgNvuwSMF71VqA8GPHStnIt4OA9 mCG0XAH9OybNZ97l6SA4NYnVzEABw8jXX85/w7BBltEJUgTRgel3i63gQz797hDDxQwX tjZorl/M00X+HQATj8WSk1dWg9ApBWLnfrWZEu6PxrQVyjc+fgiOkt8tcwGHkCgBZb2y FYvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0bKaJBZObO4PDQmflGPNqpE7eTkzu/cuBY314MK+P30=; b=TZU00Hjm7Y1Xbgt8sKH4aL5Wkun+/88Ll+T5JCWIVcpyKj+J6UjBnxsSKxcHmduJaH aMDgI25fBntBcw+Oy7F6Lq3Ob1RqflammNXB3p1uydqyiiq3qrFboQ0WEZj8xpRRq2JW Ov6nJHG1MDri3xYGqszFmKBWB3qdjL2xHO9gF3amLADzGdZg7R6Qe06Va2ARzFjP8BvA pgA1+t4T9u/A3/0NqxDe9Rvi5MvTGt7poQ9+1f0U3rXz50X/mRCM1iqVtqLg8i+u9BpN oWLp7qu4GKL0fwKeuefd7cVZwRAq36S6R1nqR9QPChApoYHgTwL+GsqxVB+SEhPNDjWm jv3w== X-Gm-Message-State: AE9vXwPUz2dDq2zgSgOtMzUQIyruCvTsMC1LQQpBgPc7G4nW1a6wrXkB9lwZV8kO84BXNAxTg0y0yg1oHtc2Yg== X-Received: by 10.157.59.180 with SMTP id k49mr579721otc.26.1472866919716; Fri, 02 Sep 2016 18:41:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.212.76 with HTTP; Fri, 2 Sep 2016 18:41:57 -0700 (PDT) Received: by 10.202.212.76 with HTTP; Fri, 2 Sep 2016 18:41:57 -0700 (PDT) In-Reply-To: References: From: Greg Dove Date: Sat, 3 Sep 2016 13:41:57 +1200 Message-ID: Subject: Re: [FlexJX][Falcon] Binding support fixes/improvements To: dev@flex.apache.org Content-Type: multipart/alternative; boundary=001a11490a828d1c76053b908d3f archived-at: Sat, 03 Sep 2016 01:42:06 -0000 --001a11490a828d1c76053b908d3f Content-Type: text/plain; charset=UTF-8 Sound great. Yes, switching it back on at any point should remain a quick fix option because it would simply make the other code act as a backstop. I will take a quick look on Monday to see if I can find any problems in small as-only projects where maybe the order of class definitions in the swf could be important with the current approach. Sounds a bit like a theoretical edge case but you made me think about it. Have a nice weekend. -Greg [sent from my phone] On 3/09/2016 12:41 PM, "Alex Harui" wrote: > > > On 9/2/16, 5:10 PM, "Greg Dove" wrote: > > >Yes, that was one of the major changes. I moved it alongside the other > >implementation inside ClassDirectiveProcessor and was able to get more > >consistent results. > >I initially commented it out so I could get everything working using the > >implements IEventDispatcher approach - which is the more general approach > >that would work for all cases- in javascript, then added it back for both > >targets as a 2nd output variation in a later commit, and it went to > >ClassDirectorProcessor for swf. > > > >I was seeing 2 issues from the ASCompilationUnit implementation: > >1. It was not always applying where it should have been (so in cases where > >it could have been 'extends EventDispatcher' it would sometimes fall > >through to the implements IEventDispatcher approach in > >ClassDIrectiveProcessor anyway). I suspect this was threading-related, but > >I am not so familiar with threads. > > > >2. Less of an issue, it could also apply an EventDispatcher base class in > >static-only bindable cases, which is unnecessary, this I expect could have > >been more easily fixed. I tried checking with hasModifier in the original > >code, but I think that might not be available yet, iirc that caused an > >error. > > > >So I moved everything to the ClassDirectiveProcessor, which had the other > >implementation of bindable support in any case. Sorry, I thought I had > >been > >clear about that. > > Well, you probably did explain it, but it probably didn't stick in my head > until we hit this last issue and I went looking for the code where I had a > vague memory of hacking a base class. I still don't know the compiler > code so well that it is clear in my head what work should be done where. > It looks like the original attempt to deal with [Bindable] for SWF was > done in ClassDirectiveProcessor, but when I wanted to fix a bug in > FalconJX I decided to fix it by hacking the AST since that drives > everything in FalconJX. The right answer may have been for me to move the > code from ClassDirectiveProcessor into ASCompilationUnit and use the > existing tests for needsEventDispatcher, then maybe we wouldn't have had > the two issues above. > > Anyway, I think we have recorded the possibility that AST hacking might be > a solution if we hit other problems. I'm ok with leaving the code as is > until we hit another problem but feel free to keep digging if you want. > > Thanks, > -Alex > > --001a11490a828d1c76053b908d3f--