This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.compiler.java-1.0.10 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-compiler.git
commit 9ded7aad2ff27eec2ee55e2210d830664d64f21f Author: Radu Cotescu <[email protected]> AuthorDate: Thu Oct 13 19:50:19 2016 +0000 SLING-6146 - SourceIdentifier should not mangle underscore characters git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/scripting/sightly/java-compiler@1764774 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/sling/scripting/sightly/java/compiler/JavaEscapeUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/scripting/sightly/java/compiler/JavaEscapeUtils.java b/src/main/java/org/apache/sling/scripting/sightly/java/compiler/JavaEscapeUtils.java index 3bc299c..6e2aad7 100644 --- a/src/main/java/org/apache/sling/scripting/sightly/java/compiler/JavaEscapeUtils.java +++ b/src/main/java/org/apache/sling/scripting/sightly/java/compiler/JavaEscapeUtils.java @@ -93,7 +93,7 @@ public class JavaEscapeUtils { } for (int i = 0; i < identifier.length(); i++) { char ch = identifier.charAt(i); - if (Character.isJavaIdentifierPart(ch) && ch != '_') { + if (Character.isJavaIdentifierPart(ch)) { modifiedIdentifier.append(ch); } else if (ch == '.') { modifiedIdentifier.append('_'); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
