You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ju...@apache.org on 2012/06/22 14:48:32 UTC

svn commit: r1352867 - /sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java

Author: justin
Date: Fri Jun 22 12:48:31 2012
New Revision: 1352867

URL: http://svn.apache.org/viewvc?rev=1352867&view=rev
Log:
SLING-2509 - changing file name in compiler to be slash delimited instead of period delimited to generate correct debug information (thanks to Stefan Guggisberg for the patch)

Modified:
    sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java

Modified: sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java?rev=1352867&r1=1352866&r2=1352867&view=diff
==============================================================================
--- sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java (original)
+++ sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java Fri Jun 22 12:48:31 2012
@@ -453,7 +453,7 @@ public class EclipseJavaCompiler impleme
          * @see org.eclipse.jdt.internal.compiler.env.IDependent#getFileName()
          */
         public char[] getFileName() {
-            return (this.packageName + '.' + this.mainTypeName + ".java").toCharArray();
+            return (this.packageName.replace('.', '/') + '/' + this.mainTypeName + ".java").toCharArray();
         }
     }
 }