You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ra...@apache.org on 2026/09/09 14:32:05 UTC

(logging-log4j2) branch fix-main-ci created (now 2e525481b0)

This is an automated email from the ASF dual-hosted git repository.

ramanathan1504 pushed a change to branch fix-main-ci
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


      at 2e525481b0 Move `ThreadContextTestAccess` to `org.apache.logging.log4j.core.test` to eliminate split package

This branch includes the following new commits:

     new 2e525481b0 Move `ThreadContextTestAccess` to `org.apache.logging.log4j.core.test` to eliminate split package

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(logging-log4j2) 01/01: Move `ThreadContextTestAccess` to `org.apache.logging.log4j.core.test` to eliminate split package

Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ramanathan1504 pushed a commit to branch fix-main-ci
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 2e525481b08e79a5e709e7ada2aa06dbfb1eb8a8
Author: Ramanathan <ra...@gmail.com>
AuthorDate: Wed Sep 9 20:01:43 2026 +0530

    Move `ThreadContextTestAccess` to `org.apache.logging.log4j.core.test` to eliminate split package
---
 .../apache/logging/log4j/async/logger/AsyncThreadContextTest.java | 2 +-
 .../logging/log4j/core/{ => test}/ThreadContextTestAccess.java    | 2 +-
 src/changelog/.3.x.x/4315_threadcontexttestaccess_package.xml     | 8 ++++++++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/log4j-async-logger/src/test/java/org/apache/logging/log4j/async/logger/AsyncThreadContextTest.java b/log4j-async-logger/src/test/java/org/apache/logging/log4j/async/logger/AsyncThreadContextTest.java
index bb3ce5cb25..2d47cfbae3 100644
--- a/log4j-async-logger/src/test/java/org/apache/logging/log4j/async/logger/AsyncThreadContextTest.java
+++ b/log4j-async-logger/src/test/java/org/apache/logging/log4j/async/logger/AsyncThreadContextTest.java
@@ -31,13 +31,13 @@ import org.apache.commons.lang3.StringUtils;
 import org.apache.logging.log4j.ThreadContext;
 import org.apache.logging.log4j.core.Logger;
 import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.ThreadContextTestAccess;
 import org.apache.logging.log4j.core.config.LoggerConfig;
 import org.apache.logging.log4j.core.impl.Log4jContextFactory;
 import org.apache.logging.log4j.core.selector.ClassLoaderContextSelector;
 import org.apache.logging.log4j.core.selector.ContextSelector;
 import org.apache.logging.log4j.core.test.CoreLoggerContexts;
 import org.apache.logging.log4j.core.test.TestConstants;
+import org.apache.logging.log4j.core.test.ThreadContextTestAccess;
 import org.apache.logging.log4j.plugins.di.DI;
 import org.apache.logging.log4j.spi.ReadOnlyThreadContextMap;
 import org.apache.logging.log4j.test.TestProperties;
diff --git a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/ThreadContextTestAccess.java b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/ThreadContextTestAccess.java
similarity index 97%
rename from log4j-core-test/src/main/java/org/apache/logging/log4j/core/ThreadContextTestAccess.java
rename to log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/ThreadContextTestAccess.java
index 299aba54f8..741fa8a4cc 100644
--- a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/ThreadContextTestAccess.java
+++ b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/ThreadContextTestAccess.java
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.logging.log4j.core;
+package org.apache.logging.log4j.core.test;
 
 import static org.junit.jupiter.api.Assertions.fail;
 
diff --git a/src/changelog/.3.x.x/4315_threadcontexttestaccess_package.xml b/src/changelog/.3.x.x/4315_threadcontexttestaccess_package.xml
new file mode 100644
index 0000000000..6a96d53f73
--- /dev/null
+++ b/src/changelog/.3.x.x/4315_threadcontexttestaccess_package.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns="https://logging.apache.org/xml/ns"
+       xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
+       type="changed">
+  <issue id="4315" link="https://github.com/apache/logging-log4j2/pull/4315"/>
+  <description format="asciidoc">Move `ThreadContextTestAccess` from `org.apache.logging.log4j.core` to `org.apache.logging.log4j.core.test` to remove a split package.</description>
+</entry>