Skip to content

Commit 8e47a5f

Browse files
committed
Ignore diagnostics without positions
"compiler.note.removal.plural.additional", "compiler.note.unchecked.filename" don't have positions thus are not usable in the ide.
1 parent c190dd5 commit 8e47a5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/JavacProblemConverter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ public int toProblemId(Diagnostic<? extends JavaFileObject> diagnostic) {
648648
String javacDiagnosticCode = diagnostic.getCode();
649649
return switch (javacDiagnosticCode) {
650650
case "compiler.warn.dangling.doc.comment" -> -1; // ignore
651-
case "compiler.note.removal.filename", "compiler.note.deprecated.plural.additional" -> -1; //ignore due to lack of position
651+
case "compiler.note.removal.filename", "compiler.note.deprecated.plural.additional",
652+
"compiler.note.removal.plural.additional", "compiler.note.unchecked.filename" -> -1; // ignore due to lack of position
652653
case "compiler.err.expected" -> IProblem.ParsingErrorInsertTokenAfter;
653654
case "compiler.err.expected2" -> IProblem.ParsingErrorInsertTokenBefore;
654655
case "compiler.err.expected3" -> IProblem.ParsingErrorInsertToComplete;

0 commit comments

Comments
 (0)