This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new 452be6f  fix for 'setter not generating appropriate binding code' (if 
it is 'Bindable' because of its containing Class).
452be6f is described below

commit 452be6f0f05cc104b707780f71f6bb193b75de09
Author: greg-dove <greg.d...@gmail.com>
AuthorDate: Tue Feb 11 19:10:09 2020 +1300

    fix for 'setter not generating appropriate binding code' (if it is 
'Bindable' because of its containing Class).
---
 .../royale/compiler/internal/codegen/js/jx/AccessorEmitter.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AccessorEmitter.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AccessorEmitter.java
index 747032a..9b5a3d2 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AccessorEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/AccessorEmitter.java
@@ -181,6 +181,9 @@ public class AccessorEmitter extends JSSubEmitter implements
                                                        if 
(tags[0].getAllAttributes().length == 0)
                                                                isBindable = 
true;
                                                }
+                                               if (tags.length == 0 ) {
+                                                       isBindable = 
definition.isBindable();// if the class itself is marked as Bindable
+                                                               }
                                        }
                                        else if (getterDef != null && 
getterDef.isBindable())
                                        {
@@ -191,7 +194,10 @@ public class AccessorEmitter extends JSSubEmitter 
implements
                                                {
                                                        if 
(tags[0].getAllAttributes().length == 0)
                                                                isBindable = 
true;
-                                               }                               
        
+                                               }
+                                                               if (tags.length 
== 0 ) {
+                                                                       
isBindable = definition.isBindable();// if the class itself is marked as 
Bindable
+                                                               }
                                        }
                                }
                            writeNewline();

Reply via email to