You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/05/01 03:12:55 UTC

[2/7] git commit: [flex-falcon] [refs/heads/dual] - accept toString always. JS compiles don't have it defined on Object because then int.toString(radix) reports an illegal override

accept toString always.  JS compiles don't have it defined on Object because then int.toString(radix) reports an illegal override


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

Branch: refs/heads/dual
Commit: 27aa1dc0776e925f834f59ef9be91a0427ed167c
Parents: 5ffbc25
Author: Alex Harui <ah...@apache.org>
Authored: Thu Apr 20 19:51:12 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Apr 20 19:51:12 2017 -0700

----------------------------------------------------------------------
 .../internal/semantics/MethodBodySemanticChecker.java    | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/27aa1dc0/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/MethodBodySemanticChecker.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/MethodBodySemanticChecker.java b/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/MethodBodySemanticChecker.java
index 3904823..a20d4de 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/MethodBodySemanticChecker.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/MethodBodySemanticChecker.java
@@ -828,11 +828,12 @@ public class MethodBodySemanticChecker
         {
             if ( utils.isInaccessible(iNode, method_binding) )
             {
-                addProblem(new InaccessibleMethodReferenceProblem( 
-                    roundUpUsualSuspects(method_binding, iNode), 
-                    method_binding.getName().getBaseName(),
-                    utils.getTypeOfStem(iNode)
-                ));
+            	if (!method_binding.getName().getBaseName().equals("toString"))
+	                addProblem(new InaccessibleMethodReferenceProblem( 
+	                    roundUpUsualSuspects(method_binding, iNode), 
+	                    method_binding.getName().getBaseName(),
+	                    utils.getTypeOfStem(iNode)
+	                ));
             }
             else if ( SemanticUtils.hasExplicitStem(iNode) && utils.hasUnderlyingType(iNode) )
             {