From 6f1559314151021eb8a713ec87219a45175bc7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Tue, 23 Jul 2024 11:05:44 +0200 Subject: [PATCH] Promote a tool name for the JavaCompiler Currently there is no name for the ECJ Implementation of JavaCompiler. This sets the name so it is possible to identify the JavaCompiler as ECJ. --- .../eclipse/jdt/internal/compiler/tool/EclipseCompiler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java index aeeede47181..c6c4c40f32c 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java @@ -248,4 +248,9 @@ public int run(InputStream in, OutputStream out, OutputStream err, String... arg null/* progress */).compile(arguments); return succeed ? 0 : -1; } + + @Override + public String name() { + return "ecj"; //$NON-NLS-1$ + } }