Branch: refs/heads/XWIKI-23253 Home: https://github.com/xwiki/xwiki-platform Commit: 1c2657b0acc0b4a7a5db096646417c9029c3b026 https://github.com/xwiki/xwiki-platform/commit/1c2657b0acc0b4a7a5db096646417... Author: Vincent Massol <[email protected]> Date: 2026-08-17 (Mon, 17 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-code/src/main/java/org/xwiki/rendering/internal/macro/code/CodeMacro.java M xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-code/src/test/java/org/xwiki/rendering/internal/macro/code/CodeMacroTest.java Log Message: ----------- XWIKI-23253: Java StackOverflowError in code macro when choosing js language * Fall back to displaying the content unhighlighted, with a warning in the logs, when the highlight parser fails, instead of failing the whole macro and thus breaking the page. * Also catch StackOverflowError, which some Pygments lexers trigger since they recurse once per character of the content and which is an Error rather than an Exception. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications