You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2021/11/12 21:18:16 UTC
[royale-compiler] branch develop updated: Explore ancestry fully
for the "Frame" metadata,
which is present (for example) in mx.core.Application. fixes #194
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 79e0406 Explore ancestry fully for the "Frame" metadata, which is present (for example) in mx.core.Application. fixes #194
79e0406 is described below
commit 79e04068fc6a4dfb6a4ff7746382c0b0a1e477c9
Author: greg-dove <gr...@gmail.com>
AuthorDate: Sat Nov 13 10:18:02 2021 +1300
Explore ancestry fully for the "Frame" metadata, which is present (for example) in mx.core.Application. fixes #194
---
.../internal/codegen/mxml/royale/MXMLRoyalePublisher.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
index 3c93e7d..523f55c 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyalePublisher.java
@@ -246,7 +246,16 @@ public class MXMLRoyalePublisher extends JSGoogPublisher implements IJSGoogPubli
}
if (baseDef != null)
{
- String factoryClassName = getFactoryClass(baseDef.getMetaTagByName("Frame"));
+ String factoryClassName = null;
+ IClassDefinition.IClassIterator classIterator = baseDef.classIterator(project, true);
+ while (classIterator.hasNext())
+ {
+ baseDef = classIterator.next();
+ if (baseDef.hasMetaTagByName("Frame")) {
+ factoryClassName = getFactoryClass(baseDef.getMetaTagByName("Frame"));
+ break;
+ }
+ }
if (factoryClassName != null)
{
mainClassQName = generateFactoryClass(factoryClassName, projectName, mainClassQName, intermediateDir);