From 1a74f31b7e6345af3cd7aaf2accc06591df04c12 Mon Sep 17 00:00:00 2001 From: Rulle IO <6768954+rulle-io@users.noreply.github.com> Date: Tue, 2 Dec 2025 18:01:14 +0100 Subject: [PATCH] Change printf to use System.out instead of System.err It seems to be an overkiil to log such problems as errors. Signed-off-by: Rulle IO <6768954+rulle-io@users.noreply.github.com> --- runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java b/runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java index e78efb6f59..8fc01fec00 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java +++ b/runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java @@ -157,11 +157,11 @@ public static void checkVersion(String generatingToolVersion, String compileTime !getMajorMinorVersion(runtimeVersion).equals(getMajorMinorVersion(compileTimeVersion)); if ( runtimeConflictsWithGeneratingTool ) { - System.err.printf("ANTLR Tool version %s used for code generation does not match the current runtime version %s%n", + System.out.printf("ANTLR Tool version %s used for code generation does not match the current runtime version %s%n", generatingToolVersion, runtimeVersion); } if ( runtimeConflictsWithCompileTimeTool ) { - System.err.printf("ANTLR Runtime version %s used for parser compilation does not match the current runtime version %s%n", + System.out.printf("ANTLR Runtime version %s used for parser compilation does not match the current runtime version %s%n", compileTimeVersion, runtimeVersion); } }