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
commit 96c57f2bfacd52e2d34a2d968de8c3f7791d722f Author: Josh Tynjala <[email protected]> AuthorDate: Thu Sep 4 09:01:43 2025 -0700 MXMLRoyaleEmitter: fix missing assignment to field in constructor when a primitive value has an id and isn't a direct child of fx:Declarations Includes Boolean, Number, String, int, uint, Class, and Function. --- .../codegen/mxml/royale/MXMLRoyaleEmitter.java | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) 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 4a18ba234..ff9f18296 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 @@ -2530,6 +2530,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements .getASEmitter(); String fNodeString = ((JSRoyaleEmitter)asEmitter).stringifyNode(fexpNode); currentPropertySpecifier.value = fNodeString; + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } return; } @@ -3254,6 +3261,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements return; } super.emitBoolean(node); + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } } @Override @@ -3265,6 +3279,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements return; } super.emitNumber(node); + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } } @Override @@ -3276,6 +3297,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements return; } super.emitInt(node); + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } } @Override @@ -3287,6 +3315,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements return; } super.emitUint(node); + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } } @Override @@ -3303,6 +3338,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements emitAttributeValue(node); currentDescriptor.valueNeedsQuotes = false; + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } } @Override @@ -3322,6 +3364,13 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements } MXMLDescriptorSpecifier ps = getCurrentDescriptor("ps"); ps.value = qname; + + String id = node.getID(); + String localId = node.getLocalID(); + if (id != null || localId != null) + { + primitiveDeclarationNodes.add(node); + } } //--------------------------------------------------------------------------
