MyFaces Core
  1. MyFaces Core
  2. MYFACES-3266

[perf] [concurrency] check correct logger creation

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.12, 2.1.6
    • Component/s: None
    • Labels:
      None

      Description

      <BLOCKED>java.util.logging.Logger.getLogger(String)
      javax.faces.component.UIViewRoot.<init>()

      problem is that has non-static logger and logger is requested in every view init. For a class (static) method, the monitor associated with the Class object for the method's class is used.

      Check myfaces code base for this usage.

        Activity

        Hide
        Leonardo Uribe added a comment -

        Attached patch with proposed solution. The idea is call it only when it is necessary. If no objections I'll commit this code soon.

        Show
        Leonardo Uribe added a comment - Attached patch with proposed solution. The idea is call it only when it is necessary. If no objections I'll commit this code soon.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Martin Kočí
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development