...
Use of the ThreadGroup APIs may result in race conditions, memory leaks, and inconsistent object state.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
THI01-J | Low | Probable | Yes | MediumNo | P4 | L3 |
Automated Detection
| Tool | Version | Checker | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CodeSonarKlocwork |
| PMDJAVA.Basic.AvoidThreadGroup | Avoid ThreadGroup | THREADGROUP | ||||||||||||||
| Parasoft Jtest |
| TRSCERT.THI01.AUTG | ImplementedDo not use variables of the unsafe type 'java.lang.ThreadGroup' | |||||||||||||||
| SonarQube | Java Plugin
| Java Plugin
| Java Plugin
| S3014 | -"ThreadGroup" should not be used | Implemented
Bibliography
[API 2006] | Class |
Item 53, "Avoid Thread Groups" | |
Item 73, "Avoid Thread Groups" | |
Section 7.3.1, "Uncaught Exception Handlers" | |
Section 13.1, " | |
| [Java Tutorials] | |
[JPL 2006] | Section 23.3.3, "Shutdown Strategies" |
[SDN 2006] | Bug ID 4089701 |
...