Skip to content

Commit

Permalink
Map one more varargs diagnostic
Browse files Browse the repository at this point in the history
Cases like:
```
!ENTRY org.eclipse.jdt.core 4 0 2025-01-22 10:50:27.539
!MESSAGE Could not accurately convert diagnostic
(compiler.warn.varargs.unsafe.use.varargs.param)
/home/akurtakov/git/eclipse.platform.ui/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/core/tests/databinding/observable/list/ListDiffTest.java:148:
warning: [varargs] Varargs method could cause heap pollution from
non-reifiable varargs parameter differences
		return Diffs.createListDiff(differences);
```
should be properly mapped now.
  • Loading branch information
akurtakov committed Jan 22, 2025
1 parent 7fe0c91 commit 9c17bb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ yield switch (rootCauseCode) {
case "compiler.err.cant.access" -> IProblem.NotAccessibleType;
case "compiler.err.var.not.initialized.in.default.constructor" -> IProblem.UninitializedBlankFinalField;
case "compiler.err.assert.as.identifier" -> IProblem.UseAssertAsAnIdentifier;
case "compiler.warn.unchecked.varargs.non.reifiable.type" -> IProblem.PotentialHeapPollutionFromVararg;
case "compiler.warn.unchecked.varargs.non.reifiable.type", "compiler.warn.varargs.unsafe.use.varargs.param" -> IProblem.PotentialHeapPollutionFromVararg;
case "compiler.err.var.might.already.be.assigned" -> IProblem.FinalFieldAssignment;
case "compiler.err.annotation.missing.default.value.1" -> IProblem.MissingValueForAnnotationMember;
case "compiler.warn.static.not.qualified.by.type" -> {
Expand Down

0 comments on commit 9c17bb6

Please sign in to comment.