Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-63

Fallback to member's declaring type if bean is unreachable at Logger injection point

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0.Beta1
    • Fix Version/s: 3.0.0.Beta2
    • Component/s: Logging
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Put the Logger injection on a CDI bean and delegate to it.

      Show
      Put the Logger injection on a CDI bean and delegate to it.
    • Estimated Difficulty:
      Low

      Description

      There are situations when the InjectionPoint#getBean() is null. [1] In this case, the producer for Logger should retrieve the type using InjectionPoint.getMember().getDeclaringClass().

      One case when this happens is when non-contextual injection is being used. We should allow for this.

      [1] InjectionPoint#getBean() JavaDoc states: "If the injection point does not belong to a bean, return a null value."

        Gliffy Diagrams

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              dan.j.allen Dan Allen
              Reporter:
              dan.j.allen Dan Allen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development