[slf4j-dev] [JIRA] (SLF4J-408) Incorrect module name for log4j-over-slf4j

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Apr 25 23:16:00 CEST 2017


    [ https://jira.qos.ch/browse/SLF4J-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18756#comment-18756 ] 

Ceki Gülcü commented on SLF4J-408:
----------------------------------

I am very much convinced by your argument that an artifact B intended to replace artifact A should have the same module name.

In the case of {{jcl-over-slf4j}} which is intended to be a binary replacement for {{commons-logging}}, the former artifact *must* have the same module name as the "replacee". However, given that {{commons-logging}} has not yet been modularized, one can only guess that the module name will be 'org.apache.commons.logging'; without any assurances.

By the same logic, {{log4j-over-slf4j}} should have the same module name as that of log4jv1. Given that log4j v1 is no longer developed, it is expected to remain as an auto-module forever with the presumed module name 'log4j'.

> Incorrect module name for log4j-over-slf4j
> ------------------------------------------
>
>                 Key: SLF4J-408
>                 URL: https://jira.qos.ch/browse/SLF4J-408
>             Project: SLF4J
>          Issue Type: Bug
>          Components: log4j-over-slf4j
>    Affects Versions: 1.8.0-alpha1
>            Reporter: Stephen Colebourne
>            Assignee: SLF4J developers list
>             Fix For: 1.8.0-alpha2
>
>
> I need to write this exact use case up in more detail, but see the comments section of my [naming article|http://blog.joda.org/2017/04/java-se-9-jpms-module-naming.html]. Basically, the module name must be the same for both the real log4j and the "fake" one being supplied by this artifact.
> This is because the purpose of this module is to replace the log4j one, and because two packages cannot be in the same module. It is up to the build system, ie. Maven, to select the correct artifact to fulfill a given module name.
> Based on discussions on the commons-dev mailing list, I'm proposing [these as the module names|http://mail-archives.apache.org/mod_mbox/commons-dev/201704.mbox/%3CCACzrW9A4ycTU4vZ08LPr_AhnZuJcP9xcBO8NqOy13FxzG35mPQ%40mail.gmail.com%3E], notably `org.apache.logging.log4j`. (This is based on my super-package reverse-DNS standard naming approach)
> Thus the module-info.java file needs to change from a module name of `org.slf4j.log4j_over_slf4j` to `org.apache.logging.log4j`.



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list