You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Daniel Ezequiel Montivero (JIRA)" <ji...@apache.org> on 2019/03/07 14:55:00 UTC

[jira] [Commented] (JCI-77) [PATCH] Support Java 8 compiler-eclipse

    [ https://issues.apache.org/jira/browse/JCI-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16786853#comment-16786853 ] 

Daniel Ezequiel Montivero commented on JCI-77:
----------------------------------------------

Attached a patch, but using the version *ecj 4.6.1* because on mvnrepository I can't find the version ecj 4.10

> [PATCH] Support Java 8 compiler-eclipse
> ---------------------------------------
>
>                 Key: JCI-77
>                 URL: https://issues.apache.org/jira/browse/JCI-77
>             Project: Commons JCI
>          Issue Type: Improvement
>          Components: compiler eclipse
>    Affects Versions: 1.1
>            Reporter: Daniel Ezequiel Montivero
>            Priority: Major
>         Attachments: JCI-77_-_Support_Java_8_compiler-eclipse.patch
>
>
> [^JCI-77_-_Support_Java_8_compiler-eclipse.patch]
> When using the Eclipse compiler, I am unable to use java 1.8 because is missing on
> *org.apache.commons.jci.compilers.EclipseJavaCompilerSettings*
>  
> {noformat}
> private static Map<String, String> nativeVersions = new HashMap<String, String>() { private static final long serialVersionUID = 1L;
>  {
>  put("1.1", CompilerOptions.VERSION_1_1);
>  put("1.2", CompilerOptions.VERSION_1_2);
>  put("1.3", CompilerOptions.VERSION_1_3);
>  put("1.4", CompilerOptions.VERSION_1_4);
>  put("1.5", CompilerOptions.VERSION_1_5);
>  put("1.6", CompilerOptions.VERSION_1_6);
>  put("1.7", CompilerOptions.VERSION_1_7);
>  //MISSING HERE THE 1.8 KEY-CONSTANT }};{noformat}
>  
> The new *ecj-4.10* support java 8 and with that the fix is pretty straightforward but maybe is required to add that dependency.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)