You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2020/07/29 20:31:16 UTC
[royale-compiler] branch develop updated: ClosureUtils: better
handling of custom namespaces so that the original name is not prevented
from being renamed
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 74cf21c ClosureUtils: better handling of custom namespaces so that the original name is not prevented from being renamed
74cf21c is described below
commit 74cf21c942ee2bbfd7b4ae7676e165670c7b4614
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Jul 29 13:31:08 2020 -0700
ClosureUtils: better handling of custom namespaces so that the original name is not prevented from being renamed
---
.../src/main/java/org/apache/royale/compiler/utils/ClosureUtils.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/utils/ClosureUtils.java b/compiler-jx/src/main/java/org/apache/royale/compiler/utils/ClosureUtils.java
index 3c47b35..17676c7 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/utils/ClosureUtils.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/utils/ClosureUtils.java
@@ -113,12 +113,13 @@ public class ClosureUtils
continue;
}
}
+ String baseName = localDef.getBaseName();
if (isCustomNS)
{
String uri = nsRef.resolveNamespaceReference(project).getURI();
- result.add(JSRoyaleEmitter.formatNamespacedProperty(uri, localDef.getBaseName(), false));
+ baseName = JSRoyaleEmitter.formatNamespacedProperty(uri, baseName, false);
}
- result.add(localDef.getBaseName());
+ result.add(baseName);
}
}
}