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

rombert pushed a commit to annotated tag org.apache.sling.commons.compiler-2.0.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-compiler.git

commit 6238b6aad51600f72f495a950633e1016b99fd5e
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Thu Dec 16 09:39:27 2010 +0000

    SLING-1809 : Eclipse compiler used in commons.compiler causes "Illegal type 
in constant pool" with
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/contrib/commons/compiler@1049850 
13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java 
b/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
index 7893d9c..e34e2ab 100644
--- 
a/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
+++ 
b/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
@@ -236,8 +236,7 @@ public class EclipseJavaCompiler implements JavaCompiler {
         }
         if (options.getSourceVersion() != null) {
             props.put("org.eclipse.jdt.core.compiler.source", 
options.getSourceVersion());
-            //props.put("org.eclipse.jdt.core.compiler.compliance", 
options.getSourceVersion());
-            
//props.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", 
options.getSourceVersion());
+            props.put("org.eclipse.jdt.core.compiler.compliance", 
options.getSourceVersion());
         }
         if (options.getTargetVersion() != null) {
             props.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", 
options.getTargetVersion());

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to