You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/11/20 17:37:48 UTC
[royale-compiler] 01/02: DefinitionBase: fixed issue where
getArrayElementType() incorrectly returned null for properties with
[InstanceType(Array)] metadata
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
View the commit online:
https://github.com/apache/royale-compiler/commit/39945b1b19938fca6401c6c3ae172daa818748e1
commit 39945b1b19938fca6401c6c3ae172daa818748e1
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Nov 20 09:12:42 2019 -0800
DefinitionBase: fixed issue where getArrayElementType() incorrectly returned null for properties with [InstanceType(Array)] metadata
---
.../apache/royale/compiler/internal/definitions/DefinitionBase.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/DefinitionBase.java b/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/DefinitionBase.java
index 50a4951..41da6b2 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/DefinitionBase.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/definitions/DefinitionBase.java
@@ -1505,7 +1505,8 @@ public abstract class DefinitionBase implements IDocumentableDefinition, IDefini
*/
public String getArrayElementType(ICompilerProject project)
{
- if (getTypeAsDisplayString().equals(IASLanguageConstants.Array))
+ if (getTypeAsDisplayString().equals(IASLanguageConstants.Array)
+ || IASLanguageConstants.Array.equals(getInstanceType(project)))
{
return getPropertyMetaTagValue(
(RoyaleProject)project, IMetaAttributeConstants.ATTRIBUTE_ARRAYELEMENTTYPE);