ThreadSafe is not a valid checker name
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
Research direction
Start with ThreadSafeChecker.java and inspect how checker names are registered in BuiltInCheckerSuppliers.java. Reproduce the reported Maven command, register the checker under ThreadSafe, and confirm that compilation accepts -Xep:ThreadSafe:WARN without reporting an invalid checker name.
Written by the indexing model from the issue text.
Description
In v2.36.0, https://errorprone.info/bugpattern/ThreadSafe seems to have an implementation in ThreadSafeChecker.java by the advertised name, but it cannot be activated by either name:
$ ./mvnw clean test-compile -DepFlags='-XepDisableAllChecks -Xep:ThreadSafe:WARN'
[INFO] Scanning for projects...
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.1:compile (default-compile) on project example: Fatal error compiling: ThreadSafe is not a valid checker name -> [Help 1]
I think this is because it is not named in BuiltInCheckerSuppliers.java (and never has been).
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 821
- Avg merge
- 17h 27m
- Merged PRs (30d)
- 45
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/error-prone
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
google/error-prone#6130 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
google/error-prone#6116 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google/error-prone#6086 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
google/error-prone#4256 · 4 comments ·
-
Difficulty 2/5 1-2 days Newbie friendliness 62/100
google/error-prone#3554 ·
All issues in google/error-prone
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100