flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [6/8] git commit: [flex-falcon] [refs/heads/develop] - allow subclassing of Application and still be an IFlexInfo
Date Thu, 08 Oct 2015 19:06:24 GMT
allow subclassing of Application and still be an IFlexInfo


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

Branch: refs/heads/develop
Commit: 7d6074d1557abc54b0667c50523bdd205f416638
Parents: 4fdf546
Author: Alex Harui <aharui@apache.org>
Authored: Thu Oct 8 11:55:32 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Oct 8 11:55:32 2015 -0700

----------------------------------------------------------------------
 .../compiler/internal/targets/FlexAppSWFTarget.java     | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7d6074d1/compiler/src/org/apache/flex/compiler/internal/targets/FlexAppSWFTarget.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/targets/FlexAppSWFTarget.java
b/compiler/src/org/apache/flex/compiler/internal/targets/FlexAppSWFTarget.java
index 87976bd..59e3c6a 100644
--- a/compiler/src/org/apache/flex/compiler/internal/targets/FlexAppSWFTarget.java
+++ b/compiler/src/org/apache/flex/compiler/internal/targets/FlexAppSWFTarget.java
@@ -980,13 +980,17 @@ public class FlexAppSWFTarget extends AppSWFTarget
         public boolean isFlexInfo(ClassDefinition rootClassDef)
         {
             ClassDefinition superClass = (ClassDefinition)rootClassDef.resolveBaseClass(flexProject);
-            String impls[] = superClass.getImplementedInterfacesAsDisplayStrings();
-            for (String impl : impls)
+            while (superClass != null && !superClass.getBaseName().equals(IASLanguageConstants.Object))
             {
-                if (impl.contains(".IFlexInfo"))
+                String impls[] = superClass.getImplementedInterfacesAsDisplayStrings();
+                for (String impl : impls)
                 {
-                    return true;
+                    if (impl.contains(".IFlexInfo"))
+                    {
+                        return true;
+                    }
                 }
+                superClass = (ClassDefinition)superClass.resolveBaseClass(flexProject);
             }
             return false;
         }


Mime
View raw message