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/08/14 06:18:57 UTC
[royale-compiler] branch develop updated: needs to be an array of a
single string instead of just the string
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 b1a400f needs to be an array of a single string instead of just the string
b1a400f is described below
commit b1a400f79a9af3d29b1409b3eb4985b2805a6cfe
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Aug 13 23:18:44 2018 -0700
needs to be an array of a single string instead of just the string
---
.../royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java
index aedbbd3..557dbf2 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java
@@ -23,6 +23,7 @@ import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Reader;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.EnumSet;
import java.util.List;
@@ -382,7 +383,15 @@ public class MXMLTreeBuilder
{
result = mxmlDialect.parseArray(project, text, flags);
if (result == null && flags.contains(TextParsingFlags.RICH_TEXT_CONTENT))
- result = mxmlDialect.parseString(project, text, flags);
+ {
+ result = mxmlDialect.parseString(project, text, flags);
+ if (result != null)
+ {
+ ArrayList<Object> arr = new ArrayList<Object>();
+ arr.add(result);
+ result = arr;
+ }
+ }
}
else if (typeName.equals(IASLanguageConstants.Object) ||
typeName.equals(IASLanguageConstants.ANY_TYPE))