You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/03/18 04:48:49 UTC
[royale-compiler] branch develop updated: handle empty classFactory
properties
This is an automated email from the ASF dual-hosted git repository.
aharui 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 caa851e handle empty classFactory properties
caa851e is described below
commit caa851e8355ad8f45d6ca8fdd7090171ca220968
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sat Mar 17 21:48:43 2018 -0700
handle empty classFactory properties
---
.../compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java | 7 +++++--
1 file changed, 5 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 4226298..b2969bc 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
@@ -2528,13 +2528,16 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements
@Override
public void emitFactory(IMXMLFactoryNode node)
{
+ IASNode cnode = node.getChild(0);
+ ITypeDefinition type = ((IMXMLClassNode)cnode).getValue(getMXMLWalker().getProject());
+ if (type == null) return;
+
MXMLDescriptorSpecifier ps = getCurrentDescriptor("ps");
ps.value = "new " + formatQualifiedName("org.apache.royale.core.ClassFactory") + "(";
- IASNode cnode = node.getChild(0);
if (cnode instanceof IMXMLClassNode)
{
- ps.value += formatQualifiedName(((IMXMLClassNode)cnode).getValue(getMXMLWalker().getProject()).getQualifiedName());
+ ps.value += formatQualifiedName(type.getQualifiedName());
}
ps.value += ")";
}
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.