ppkarwasz opened a new issue, #1967:
URL: https://github.com/apache/logging-log4j2/issues/1967

   As described in 
[TypeParameterUnusedInFormals](https://errorprone.info/bugpattern/TypeParameterUnusedInFormals),
 these methods provide developers a false sense of _type safety_, whereas in 
reality they can cause `ClassCastException`s at runtime:
   
   - [ ] 
[Logger#getMessageFactory](https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/Logger.html#getMessageFactory()),
   - [ ] 
[ReadOnlyStringMap#getValue](https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/util/ReadOnlyStringMap.html#getValue(java.lang.String)),
   - [ ] 
[LoaderUtil#newInstanceOf(String)](https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/util/LoaderUtil.html#newInstanceOf(java.lang.String))
 and similar,
   - [ ] 
[ObjectThreadContextMap#getValue](https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/spi/ObjectThreadContextMap.html#getValue(java.lang.String)).
   
   Changing/removing these methods is a binary compatible, but source 
incompatible change, hence this must be done in a major release.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to