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/06/10 17:25:14 UTC

[royale-compiler] branch develop updated (905517e -> 806603c)

This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git.


    from 905517e  restore/reposition a system.out.println that was incorrectly moved by accident
     new 03cb322  DynamicAccessNode: fixed issue where errors were not reported for undefined fields/methods on objects in a vector (references #80)
     new 806603c  JSConfiguration: allows a few new ActionScript language features by default

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/royale/compiler/clients/JSConfiguration.java     | 3 +++
 .../apache/royale/compiler/internal/tree/as/DynamicAccessNode.java   | 5 +++++
 2 files changed, 8 insertions(+)


[royale-compiler] 02/02: JSConfiguration: allows a few new ActionScript language features by default

Posted by jo...@apache.org.
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

commit 806603c815a5bcfcca8f232c81294985e0e03e39
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Jun 10 10:25:00 2019 -0700

    JSConfiguration: allows a few new ActionScript language features by default
---
 .../main/java/org/apache/royale/compiler/clients/JSConfiguration.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/JSConfiguration.java b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/JSConfiguration.java
index c75b550..357a838 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/JSConfiguration.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/JSConfiguration.java
@@ -56,6 +56,9 @@ public class JSConfiguration extends Configuration
 {
     public JSConfiguration()
     {
+        setCompilerAllowAbstractClasses(null, true);
+        setCompilerAllowPrivateConstructors(null, true);
+        setCompilerAllowImportAliases(null, true);
     }
 
     //


[royale-compiler] 01/02: DynamicAccessNode: fixed issue where errors were not reported for undefined fields/methods on objects in a vector (references #80)

Posted by jo...@apache.org.
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

commit 03cb32260250326eb7ab5540661625b3a227cbed
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Jun 10 10:24:04 2019 -0700

    DynamicAccessNode: fixed issue where errors were not reported for undefined fields/methods on objects in a vector (references #80)
    
    Example: vec[0].fakeMethod() did not result in an error if the type of elements in the vector don't define fakeMethod()
    
    The Flex SDK compiler correctly reports an error, so this makes the Royale compiler behave the same
---
 .../apache/royale/compiler/internal/tree/as/DynamicAccessNode.java   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/DynamicAccessNode.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/DynamicAccessNode.java
index dd974a7..b616b9d 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/DynamicAccessNode.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/DynamicAccessNode.java
@@ -72,6 +72,11 @@ public class DynamicAccessNode extends BinaryOperatorNodeBase implements IDynami
     @Override
     public boolean isDynamicExpression(ICompilerProject project)
     {
+        ITypeDefinition leftType = getLeftOperandNode().resolveType(project);
+        if (leftType instanceof IAppliedVectorDefinition)
+        {
+            return super.isDynamicExpression(project);
+        }
         return true;
     }