Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-184

Logger interface implementations inaccessible in module mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.0.Final
    • 3.5.3.Final
    • None
    • None

      Log bundle implementations are often in unexported packages or extending non-public interfaces. In module mode, the stricter access control checks block access to the implementation class in these (and possibly other) cases.

      We can gain access to the implementation class (and reduce our usage of security manager) using the new Java access control idioms by introducing variants to the getMessageLogger and getBundle methods which accept a MethodHandles.Lookup, and deprecate the old methods.

      When given a Lookup, we can avoid using AccessController.doPrivileged at all.

            dlloyd@redhat.com David Lloyd
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: