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 382026c  Fix for missing mxml reflection data when using localId (it 
should still be there)
382026c is described below

commit 382026c8702919f2165cc9bb4625fc5e8762ee89
Author: greg-dove <[email protected]>
AuthorDate: Tue Dec 7 21:09:06 2021 +1300

    Fix for missing mxml reflection data when using localId (it should still be 
there)
---
 .../compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
index ff78da9..acba799 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java
@@ -1306,11 +1306,12 @@ public class MXMLRoyaleEmitter extends MXMLEmitter 
implements
 
         for (MXMLDescriptorSpecifier instance : instances)
         {
-            if (instance.id != null)
+                       String instanceId = instance.id != null ? instance.id : 
(instance.hasLocalId ? instance.effectiveId : null);
+            if (instanceId != null)
             {
                        PackageFooterEmitter.AccessorData data = 
asEmitter.packageFooterEmitter.new AccessorData();
                        accessorData.add(data);
-                       data.name = instance.id;
+                       data.name = instanceId;
                        data.type = instance.name;
                 data.access = "readwrite";
                    data.declaredBy = cdef.getQualifiedName();

Reply via email to