[slf4j-dev] [JIRA] (SLF4J-428) automatic module name for jul-to-slf4j contains illegal token

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Nov 30 08:34:00 CET 2018


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

Peter-Josef Meisch commented on SLF4J-428:
------------------------------------------

_to_ was in Java 9 a restricted keyword; see [http://cr.openjdk.java.net/~mr/jigsaw/spec/java-se-9-jls-diffs.pdf,] section 3.9, or in short Mark Reinhold's answer in SO: [https://stackoverflow.com/questions/36322223/new-keywords-in-java-9|https://stackoverflow.com/questions/36322223/new-keywords-in-java-9.] and using it in a module name produced an error when Java 9 came out.

 

> automatic module name for jul-to-slf4j contains illegal token
> -------------------------------------------------------------
>
>                 Key: SLF4J-428
>                 URL: https://jira.qos.ch/browse/SLF4J-428
>             Project: SLF4J
>          Issue Type: Bug
>          Components: jul-to-slf4j
>    Affects Versions: 1.8.0-beta1
>            Reporter: Peter-Josef Meisch
>            Assignee: Ceki Gülcü
>             Fix For: 1.8.0-beta2
>
>
> the automatic module name that is created in Java 9 for the jul-to-slf4 jar is _jul.to.slf4j at 1.8.0-beta1_. This contains the token *to* which is a reserved word in Java 9 so the generated name cannot be used in requires statements in modul-info.java files of projects using jul-to-slf4j and inhibits migration of projects to Java 9.
> This should be modified by adding
> {{Automatic-Module-Name: jul_to_slf4j}}
> to the manifest for the archive.



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


More information about the slf4j-dev mailing list