This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-compiler-java.git

commit a4081db4528fda8c322815cd568baa97b8b6a2ff
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@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]>.

Reply via email to