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 <[email protected]>
Authored: Thu Oct 30 21:32:09 2014 -0700
Committer: Alex Harui <[email protected]>
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);

Reply via email to