use current class since cnode can be null in MXML script blocks
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/25358a83 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/25358a83 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/25358a83 Branch: refs/heads/feature-autobuild/maven-archetypes Commit: 25358a8377c11131c4c0901668c4e6d5787ac034 Parents: ed2c72a Author: Alex Harui <aha...@apache.org> Authored: Wed Sep 28 13:59:29 2016 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Thu Sep 29 20:56:44 2016 -0700 ---------------------------------------------------------------------- .../compiler/internal/codegen/js/jx/MemberAccessEmitter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/25358a83/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java ---------------------------------------------------------------------- diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java index 88a0262..14ea245 100644 --- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java +++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/MemberAccessEmitter.java @@ -290,10 +290,8 @@ public class MemberAccessEmitter extends JSSubEmitter implements else if (leftNode.getNodeID() == ASTNodeID.SuperID && (rightNode.getNodeID() == ASTNodeID.GetterID || (rightDef != null && rightDef instanceof AccessorDefinition))) { - IClassNode cnode = (IClassNode) node - .getAncestorOfType(IClassNode.class); write(getEmitter().formatQualifiedName( - cnode.getQualifiedName())); + getEmitter().getModel().getCurrentClass().getQualifiedName())); write(ASEmitterTokens.MEMBER_ACCESS); write(JSGoogEmitterTokens.GOOG_BASE); write(ASEmitterTokens.PAREN_OPEN);