You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2017/06/08 06:54:18 UTC

[jira] [Commented] (LOG4J2-1745) Add support for multi-release jars for JDK9+

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

Ralph Goers commented on LOG4J2-1745:
-------------------------------------

I tried using multi-release jars and ran into trouble with OSGi. The code now supports Java 9 without this so I would suggest we not do this.

> Add support for multi-release jars for JDK9+
> --------------------------------------------
>
>                 Key: LOG4J2-1745
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1745
>             Project: Log4j 2
>          Issue Type: New Feature
>         Environment: JDK9 and future JDK releases
>            Reporter: Matt Sicker
>            Assignee: Ralph Goers
>
> [JEP 238|http://openjdk.java.net/jeps/238] adds multi-release jars which allow a jar to contain multiple versions of a class depending on which version of the JVM/JDK is being used at runtime. This will help support for new APIs in JDK9+ so that we don't need to rely on reflection to access newer APIs dynamically. This is also useful in performance-critical sections (e.g., LOG4J2-1359).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)