You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2022/01/29 08:05:51 UTC
[logging-log4j2] branch master updated: Use module to load bundle
This is an automated email from the ASF dual-hosted git repository.
mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/master by this push:
new 29b4fee Use module to load bundle
29b4fee is described below
commit 29b4feeccad61d56c6478c9dcc9e44a72c32e924
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sat Jan 29 02:04:09 2022 -0600
Use module to load bundle
---
.../org/apache/logging/log4j/message/LocalizedMessageFactoryTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log4j-api-test/src/test/java/org/apache/logging/log4j/message/LocalizedMessageFactoryTest.java b/log4j-api-test/src/test/java/org/apache/logging/log4j/message/LocalizedMessageFactoryTest.java
index 5de799a..25f4f51 100644
--- a/log4j-api-test/src/test/java/org/apache/logging/log4j/message/LocalizedMessageFactoryTest.java
+++ b/log4j-api-test/src/test/java/org/apache/logging/log4j/message/LocalizedMessageFactoryTest.java
@@ -35,7 +35,7 @@ public class LocalizedMessageFactoryTest {
@Test
public void testNewMessage() {
final LocalizedMessageFactory localizedMessageFactory = new LocalizedMessageFactory(
- ResourceBundle.getBundle("MF", Locale.US, getClass().getClassLoader()));
+ ResourceBundle.getBundle("MF", Locale.US, getClass().getModule()));
final Message message = localizedMessageFactory.newMessage("hello_world");
assertEquals("Hello world.", message.getFormattedMessage());
}