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 2014/10/31 15:28:39 UTC

[2/4] git commit: [flex-falcon] [refs/heads/develop] - interfaces are sealed

interfaces are sealed


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

Branch: refs/heads/develop
Commit: 27576a3bab35054e74a50ed3288c8a890bd7ef17
Parents: 1144b7b
Author: Alex Harui <ah...@apache.org>
Authored: Thu Oct 30 21:32:09 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Oct 30 21:36:35 2014 -0700

----------------------------------------------------------------------
 .../internal/as/codegen/InterfaceDirectiveProcessor.java        | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/27576a3b/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java b/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
index 59c379b..b8be0ac 100644
--- a/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
+++ b/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
@@ -226,6 +226,11 @@ public class InterfaceDirectiveProcessor extends DirectiveProcessor
             }
         }
         
+        // Set the flags corresponding to 'final' and 'dynamic'.
+        if (interfDef.isFinal())
+            iinfo.flags |= ABCConstants.CLASS_FLAG_final;
+        if (!interfDef.isDynamic())
+            iinfo.flags |= ABCConstants.CLASS_FLAG_sealed;
         iinfo.flags |= ABCConstants.CLASS_FLAG_interface;
         
         this.cv = emitter.visitClass(iinfo, cinfo);