[ 
https://issues.apache.org/jira/browse/LOG4J2-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carter Kozak reassigned LOG4J2-2751:
------------------------------------

    Assignee: Carter Kozak

> StackLocator.getCallerClass throws and catches unnecessarily internally in 
> some cases
> -------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2751
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2751
>             Project: Log4j 2
>          Issue Type: Improvement
>    Affects Versions: 2.13.0
>            Reporter: Carter Kozak
>            Assignee: Carter Kozak
>            Priority: Major
>             Fix For: 2.13.1
>
>
> In cases when 'WARNING: sun.reflect.Reflection.getCallerClass is not 
> supported. This will impact performance.' is logged, invocations of 
> 'getCallerClass' internally attempt a dynamic method invocation using a null 
> Method reference, but catch the null pointer exception and return null.
> We should do a null check first to avoid unnecessary work.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to