Skip to content

Commit fea8bd9

Browse files
Remove jvmrunargs lookup and related code, update changelog (fixes apache#2726)
1 parent a65b7d6 commit fea8bd9

File tree

4 files changed

+12
-42
lines changed

4 files changed

+12
-42
lines changed

log4j-core-test/src/test/resources/log4j2-test.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public class Interpolator extends AbstractConfigurationAwareLookup implements Lo
5353

5454
private static final String LOOKUP_KEY_JNDI = "jndi";
5555

56-
private static final String LOOKUP_KEY_JVMRUNARGS = "jvmrunargs";
5756

5857
private static final Logger LOGGER = StatusLogger.getLogger();
5958

@@ -126,11 +125,6 @@ private void handleError(final String lookupKey, final Throwable t) {
126125
+ " JNDI string lookups will not be available, continuing configuration. Ignoring "
127126
+ t);
128127
break;
129-
case LOOKUP_KEY_JVMRUNARGS:
130-
// java.lang.VerifyError: org/apache/logging/log4j/core/lookup/JmxRuntimeInputArgumentsLookup
131-
LOGGER.warn("JMX runtime input lookup class is not available because this JRE does not support JMX. "
132-
+ "JMX lookups will not be available, continuing configuration. Ignoring " + t);
133-
break;
134128
case LOOKUP_KEY_WEB:
135129
LOGGER.info("Log4j appears to be running in a Servlet environment, but there's no log4j-web module "
136130
+ "available. If you want better web container support, please add the log4j-web JAR to your "
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<entry xmlns="https://logging.apache.org/xml/ns"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="
5+
https://logging.apache.org/xml/ns
6+
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
7+
type="removed">
8+
<issue id="3874" link="https://github.com/apache/logging-log4j2/issues/3874"/>
9+
<description format="asciidoc">
10+
Removed the `jvmrunargs` lookup and related code due to lack of clear use case and potential for confusion.
11+
</description>
12+
</entry>

src/changelog/2.25.1/xxxx_remove_jvmrunargs_lookup.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)