Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2020-08-16 10:18:07 -0400
committerJay Arthanareeswaran2020-08-18 06:46:02 -0400
commit32841e78082365368261a5aa4052adb44d367cb4 (patch)
treec71a79839646a2fd9d57d97de6290fc7f171cc97
parentf1892601283bdba9dfd6a899fa20d68fbc92f0f9 (diff)
downloadeclipse.jdt.core-32841e78082365368261a5aa4052adb44d367cb4.tar.gz
eclipse.jdt.core-32841e78082365368261a5aa4052adb44d367cb4.tar.xz
eclipse.jdt.core-32841e78082365368261a5aa4052adb44d367cb4.zip
Bug 566105 - [batch] bogus output regarding total number of infos
Change-Id: If03557d90b22f8d8cee28f4ba529c4d27cff4237 Signed-off-by: Stephan Herrmann <stephan.herrmann@berlin.de>
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java2
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
index da054cf092..86b5a67575 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
@@ -945,7 +945,7 @@ public class Main implements ProblemSeverities, SuffixConstants {
if (globalInfoCount == 1) {
infoMessage = this.main.bind("compile.oneInfo"); //$NON-NLS-1$
} else if (globalInfoCount > 1) {
- infoMessage = this.main.bind("compile.severalInfos", String.valueOf(warningsNumber)); //$NON-NLS-1$
+ infoMessage = this.main.bind("compile.severalInfos", String.valueOf(globalInfoCount)); //$NON-NLS-1$
}
if (globalProblemsCount == globalInfoCount || globalProblemsCount == globalErrorsCount || globalProblemsCount == globalWarningsCount) {
String msg = errorMessage != null ? errorMessage : warningMessage != null ? warningMessage : infoMessage;
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
index b33ba28889..71ae33727e 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
@@ -51,7 +51,7 @@ compile.severalErrors = {0} errors
compile.oneWarning = 1 warning
compile.severalWarnings = {0} warnings
compile.oneInfo = 1 info
-compile.severalInfos = {0} info
+compile.severalInfos = {0} infos
compile.oneClassFileGenerated = [1 .class file generated]
compile.severalClassFilesGenerated = [{0} .class files generated]
compile.failOnWarning = error: warnings found and -failOnWarning specified

Back to the top