Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrits Jalvingh2018-10-25 13:12:47 +0000
committerJay Arthanareeswaran2018-11-08 05:51:13 +0000
commitcecd785d6c8bf4a0ee586b3d786515e7a58e0e4f (patch)
tree4805d94bbd303022794fdb2584d7b586887f88b6 /org.eclipse.jdt.core/compiler/org
parent80bdaef13bd0d7936f073b42674151f04a4e7caf (diff)
downloadeclipse.jdt.core-cecd785d6c8bf4a0ee586b3d786515e7a58e0e4f.tar.gz
eclipse.jdt.core-cecd785d6c8bf4a0ee586b3d786515e7a58e0e4f.tar.xz
eclipse.jdt.core-cecd785d6c8bf4a0ee586b3d786515e7a58e0e4f.zip
Bug 533830: not all compilation errors are sent to the DiagnosticListener.I20181109-0350I20181108-1800
Signed-off-by: Frits Jalvingh <jal@etc.to> Change-Id: I4ce1afe0a5e6c80982f8ffd859e1e196203b9ab6
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java
index d9bbcecdbb..3bc5761558 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java
@@ -12,7 +12,8 @@
* IBM Corporation - initial API and implementation
* Stephan Herrmann - Contribution for bug 295551
* Jesper S Moller - Contributions for
- * Bug 405066 - [1.8][compiler][codegen] Implement code generation infrastructure for JSR335
+ * Bug 405066 - [1.8][compiler][codegen] Implement code generation infrastructure for JSR335
+ * Frits Jalvingh - contributions for bug 533830.
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.ast;
@@ -241,11 +242,6 @@ public void finalizeProblems() {
int problemCount = this.compilationResult.problemCount;
CategorizedProblem[] problems = this.compilationResult.problems;
if (this.suppressWarningsCount == 0) {
- for (int iProblem = 0, length = problemCount; iProblem < length; iProblem++) {
- if (problems[iProblem] instanceof DefaultProblem) {
- ((DefaultProblem)problems[iProblem]).reportError();
- }
- }
return;
}
int removed = 0;

Back to the top