flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adufi...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - Array class should be dynamic
Date Tue, 12 Jan 2016 16:38:26 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop a8e8425a5 -> b74b09dd2


Array class should be dynamic


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

Branch: refs/heads/develop
Commit: b74b09dd2c074ab6916dd11aa7526d4c857329cd
Parents: a8e8425
Author: Andy Dufilie <adufilie@apache.org>
Authored: Tue Jan 12 11:38:05 2016 -0500
Committer: Andy Dufilie <adufilie@apache.org>
Committed: Tue Jan 12 11:38:05 2016 -0500

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/externals/TestExternES3.java    | 1 +
 .../internal/codegen/externals/reference/ReferenceModel.java       | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b74b09dd/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternES3.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternES3.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternES3.java
index 29ac6fb..24206d9 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternES3.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternES3.java
@@ -86,6 +86,7 @@ public class TestExternES3 extends ExternalsTestBase
 
         ClassReference Array = model.getClassReference("Array");
         assertNotNull(Array);
+        assertTrue(Array.isDynamic());
 
         MethodReference constructor = Array.getConstructor();
         StringBuilder sb = new StringBuilder();

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b74b09dd/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
index 090eb63..62ae14f 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
@@ -141,7 +141,7 @@ public class ReferenceModel
         ClassReference reference = new ClassReference(this, node, qualifiedName);
 
         // TODO (mschmalle) Figure out if gcc makes any decisions about what is final or
dynamic
-        if (reference.getQualifiedName().equals("Object"))
+        if (reference.getQualifiedName().equals("Object") || reference.getQualifiedName().equals("Array"))
             reference.setDynamic(true);
 
         classes.put(qualifiedName, reference);


Mime
View raw message