eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Confusing "At least one of the problems in category 'resource' is not analysed due to a compiler option being ignored"

Open
#2,279 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

ECJ emits [a warning here](https://ci.eclipse.org/pde/job/eclipse.pde/job/PR-1217/3/eclipse/new/source.c1f52490-53cd-4c0e-a0d9-919578e0d0f0/#352):

![grafik](https://github.com/eclipse-jdt/eclipse.jdt.core/assets/1331477/c2871f99-14c8-4f3f-9b28-fca0863fdadc)

The reason seems that the `@SuppressWarnings("resource")` is not needed (anymore?) at that place, but I find the message highly confusing, because it does not tell *what* option is responsible for that if I go to the problem severity

![grafik](https://github.com/eclipse-jdt/eclipse.jdt.core/assets/1331477/4fa95152-b03f-49c9-9129-eeb60a0785ff)

it only talks about "a relevant option is set to ignore" but again here its hard to tell what that should be.

The quickfix suggest to remove the token but I can't really match that to the actual message, because if it is not needed I would expect something like "remove unnecessary suppress warning" or similar:

![grafik](https://github.com/eclipse-jdt/eclipse.jdt.core/assets/1331477/88fcc68a-45c4-41ab-b173-f1aa98a8ab65)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.