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

Remko Popma edited comment on LOG4J2-2133 at 11/28/17 1:45 PM:
---------------------------------------------------------------

Yes, Log4j 2.10 is simply following the [JEP 
238|http://openjdk.java.net/jeps/238] spec.

In my understanding, this JEP is designed to be backwards compatible:
Classes are supposed to be loaded from the jar root, and the META-INF folder is 
used to store package and extension configuration data, including security, 
versioning, extension and services. Tools should not load classes from it 
unless they follow the Java 9 spec. As it stands, Android will have problems 
with all multi-version jars which is obviously not good.

On the other hand, you have a fair point that some of these classes are only 
used in core and in the future we are looking at making log4j-core a 
multi-version jar.


was (Author: [email protected]):
Yes, Log4j 2.10 is simply following the [JEP 
238|http://openjdk.java.net/jeps/238] spec.

In my understaning, this JEP is designed to be backwards compatible:
Classes are supposed to be loaded from the jar root, and the META-INF folder is 
used to store package and extension configuration data, including security, 
versioning, extension and services. Tools should not load classes from it 
unless they follow the Java 9 spec. As it stands, Android will have problems 
with all multi-version jars which is obviously not good.

On the other hand, you have a fair point that some of these classes are only 
used in core and in the future we are looking at making log4j-core a 
multi-version jar.

> Log4J 2 appears incompatible with Android platform due to inclusion of Java 9 
> classes (class file version 53)
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2133
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2133
>             Project: Log4j 2
>          Issue Type: Wish
>          Components: API
>    Affects Versions: 2.9.1, 2.10.0
>            Reporter: Oleg Kalnichevski
>         Attachments: Screenshot from 2017-11-28 09-41-37.png
>
>
> Log4J 2 appears incompatible with Android platform due to inclusion of Java 9 
> classes (class file version 53). Please see screenshot attached. 
> I fully admit that there might be a way to make Android ignore those files 
> but it is still disheartening that Log4J 2 APIs have dependencies on things 
> that go beyond providing a thin logging abstraction layer.
> Oleg



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to