[logback-dev] [JIRA] Issue Comment Edited: (LBCLASSIC-184) Remove Cyclic Dependencies between Classic, SLF4J API and SLF4J Impl

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Thu Mar 18 15:03:16 CET 2010


    [ http://jira.qos.ch/browse/LBCLASSIC-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11632#action_11632 ] 

Ceki Gulcu edited comment on LBCLASSIC-184 at 3/18/10 3:03 PM:
---------------------------------------------------------------

Adding ch.qos.logback.classic.util to the list of imports helps. I tried this but since the osgi tests require logback-classic.jar, they kept failing because of the missing import statement, adding it in the pom.xml had no effect. Building logback-classic.jar with testing disabled, and testing afterwords worked. 

I still find it strange for a bundle to declare an import of one of its own packages (logback-classic.jar importing ch.qos.logback.classic.util). 

      was (Author: noreply.ceki at qos.ch):
    Adding ch.qos.logback.classic.util to the list of imports helps. I tried this but since the osgi tests require logback-classic.jar, and kept failing because of the missing import statement, adding it in the pom.xml had no effect. Building with testing disabled, and testing later worked. 

However, I find it quite strange for a bundle to declare an import of one of its own packages (logback-classic.jar importing ch.qos.logback.classic.util).
  
> Remove Cyclic Dependencies between Classic, SLF4J API and SLF4J Impl
> --------------------------------------------------------------------
>
>                 Key: LBCLASSIC-184
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-184
>             Project: logback-classic
>          Issue Type: Task
>          Components: Other
>    Affects Versions: 0.9.18
>            Reporter: Gunnar Wagenknecht
>            Assignee: Ceki Gulcu
>            Priority: Critical
>         Attachments: context-selector.patch, mdc-move.patch, TEST-org.slf4j.test_osgi.BundleTest.txt
>
>
> When working with Logback as OSGi bundles I found some issues regarding cyclic dependencies. Basically, code in "org.slf4j.impl" depends on "org.slf4j.api" as well as Logback classic. This is fine. However, code in Logback classic also depends on "org.slf4j.impl". This introduces a cycle.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list