Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3319

Add minimal support for log4j 1.2 API bundle usage in Eclipse IDE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.12.4
    • None
    • Core, Log4j 1.2 bridge, OSGi
    • None

    Description

      Status Quo

      The "log4j core" and "log4j 1.2 api" library (and others as well) are build as bundle.

      The compatibility library is build as fragment.

      Problem

      Using the log4j core and 1.2 api library in Eclipse-runtime (via target platform) does not properly work out, since the 1.2 api fragment bundle is extending the core bundle's api, by declaring extra Export-Packages statements for log4j 1.2 api.

      Unfortunately Eclipse is not capable of resolving those extra added API (via Export-Packages) from a fragement, even though at runtime it is supposed to work.

      Solution Proposal

      Add the following bundle manifest header to core bundle, to support the extra added API by the 1.2 api fragement bundle:

      Eclipse-ExtensibleAPI: true

      Please see The Eclipse-ExtensibleAPI Header section of Eclipse's Platform Plugin-In Developer Guide documentation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benjaminr Benjamin Röhl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m