Skip to content

Warn when condition is nested inside if - #1061

Open
Guflly wants to merge 1 commit into
qos-ch:masterfrom
Guflly:fix/condition-inside-if-warning
Open

Warn when condition is nested inside if#1061
Guflly wants to merge 1 commit into
qos-ch:masterfrom
Guflly:fix/condition-inside-if-warning

Conversation

@Guflly

@Guflly Guflly commented Aug 1, 2026

Copy link
Copy Markdown

A <condition> nested inside <if> now produces a clear placement warning instead of only the misleading Janino message. The black-box regression confirms the branch remains skipped and the warning identifies the configuration error. Tests: IfThenElseTest (19 tests, 2 skipped) and the logback-core-blackbox suite (29 tests, 3 skipped) passed. Release note:

Warn when a <condition> element is nested inside <if> instead of placed before it. See #1024.

Closes #1024.

Signed-off-by: Guflly <145608489+Guflly@users.noreply.github.com>
@Guflly
Guflly force-pushed the fix/condition-inside-if-warning branch from 9dfd57e to 0bff9c5 Compare August 1, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<condition> placed inside <if> is silently ignored, produces misleading "Janino not found" error

1 participant