[JAVA-5127] Remove DBCursorCleaner abstraction Created: 30/Aug/23 Updated: 14/Sep/23 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | Internal |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | tech-debt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Require Java 11 |
| Description |
|
The legacy driver includes an abstraction for cursor cleaning that relies on finalization for Java 8 and reflective use of java.lang.ref.Cleaner on Java 9+. Once Java 11 is the minimum, the finalization-based mechanism can be removed, the reflective implementation replaced with a normal one, and the DBCursorCleaner abstraction removed. |