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

joshtynjala 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 c0d0f8806 MXMLClassDirectiveProcessor: fix incorrectly pushing the id 
of an MXML object as data when children-as-data is false
c0d0f8806 is described below

commit c0d0f880680c196d54f11ee2f1bfe3b908a6d469
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Aug 28 15:40:42 2025 -0700

    MXMLClassDirectiveProcessor: fix incorrectly pushing the id of an MXML 
object as data when children-as-data is false
---
 .../compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
 
b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
index 6572f7c8d..89e19c2dc 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
@@ -3095,7 +3095,7 @@ public class MXMLClassDirectiveProcessor extends 
ClassDirectiveProcessor
         if (newCodeGen && !context.makingSimpleArray)
             context.pushNumericConstant(numElements);
         context.transfer(IL.PROPERTIES);
-        if (id != null)
+        if (newCodeGen && id != null)
         {
                if (id.startsWith("#"))
                        context.addInstruction(OP_pushstring, "_id");

Reply via email to