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

Move caller class reflection utils to API

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None

      Description

      In particular, ReflectiveCallerClassUtility should be moved into the API inside the util package. This will provide a nice alternative for making a new Throwable each time.

      For an idea on why this can be useful, run the ReflectionBenchmark in log4j-perf and note the differences. It's rather significant.

      Since this would go in the util package, it would be a non-public API. It would make sense for some very, very common utility classes like this to be in there.

        Attachments

          Activity

            People

            • Assignee:
              jvz Matt Sicker
              Reporter:
              jvz Matt Sicker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: