Repository: flex-falcon
Updated Branches:
  refs/heads/develop 5ffbc255a -> 153b51e24


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/develop
Commit: 27aa1dc0776e925f834f59ef9be91a0427ed167c
Parents: 5ffbc25
Author: Alex Harui <[email protected]>
Authored: Thu Apr 20 19:51:12 2017 -0700
Committer: Alex Harui <[email protected]>
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) )
             {

Reply via email to