flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/4] git commit: [flex-falcon] [refs/heads/develop] - Fix MXML Vector processing again
Date Fri, 30 Aug 2013 13:29:56 GMT
Fix MXML Vector processing again


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/bdbeac2f
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/bdbeac2f
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/bdbeac2f

Branch: refs/heads/develop
Commit: bdbeac2fd94f6235bbc44ec9b36603eb93922c35
Parents: 7b9e4d0
Author: Alex Harui <aharui@apache.org>
Authored: Fri Aug 30 06:29:32 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Aug 30 06:29:32 2013 -0700

----------------------------------------------------------------------
 .../internal/as/codegen/MXMLClassDirectiveProcessor.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/bdbeac2f/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
b/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
index 8ece73a..00c54aa 100644
--- a/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
+++ b/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
@@ -2971,7 +2971,9 @@ public class MXMLClassDirectiveProcessor extends ClassDirectiveProcessor
     {
         ICompilerProject project = getProject();
         int n = vectorNode.getChildCount();
-        ITypeDefinition type = ((IAppliedVectorDefinition)(vectorNode.getType())).resolveElementType(project);
+        ITypeDefinition type = vectorNode.getType();
+        if (type instanceof IAppliedVectorDefinition)
+            type = ((IAppliedVectorDefinition)(vectorNode.getType())).resolveElementType(project);
         boolean fixed = vectorNode.getFixed();
                 
         ASProjectScope projectScope = (ASProjectScope)project.getScope();


Mime
View raw message