Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0057436Openbravo ERPA. Platformpublic2024-12-12 08:412024-12-19 08:40
caristu 
Triage Platform Base 
highminorhave not tried
closedfixed 
5
 
PR25Q1 
approved
No
Core
No
0057436: Resource leak warning in CentralRepository
There is a warning in the line 136 of the CentralRepository class: "Resource leak: '<unassigned Closeable value>' is never closed".

This warning appears starting from Eclipse 2024-12; previous versions detect it only if "potential resource leak" warn is enabled.
.
No tags attached.
Issue History
2024-12-12 08:41caristuNew Issue
2024-12-12 08:41caristuAssigned To => Triage Platform Base
2024-12-12 08:41caristuOBNetwork customer => No
2024-12-12 08:41caristuModules => Core
2024-12-12 08:41caristuTriggers an Emergency Pack => No
2024-12-12 08:47hgbotMerge Request Status => open
2024-12-12 08:47hgbotNote Added: 0173214
2024-12-19 08:31hgbotMerge Request Statusopen => approved
2024-12-19 08:31hgbotNote Added: 0173482
2024-12-19 08:31hgbotResolutionopen => fixed
2024-12-19 08:31hgbotStatusnew => closed
2024-12-19 08:31hgbotFixed in Version => PR25Q1
2024-12-19 08:31hgbotNote Added: 0173483
2024-12-19 08:39caristuDescription Updatedbug_revision_view_page.php?rev_id=28935#r28935
2024-12-19 08:39caristuDescription Updatedbug_revision_view_page.php?rev_id=28936#r28936
2024-12-19 08:40caristuDescription Updatedbug_revision_view_page.php?rev_id=28937#r28937

Notes
(0173214)
hgbot   
2024-12-12 08:47   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1473 [^]
(0173482)
hgbot   
2024-12-19 08:31   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1473 [^]
(0173483)
hgbot   
2024-12-19 08:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 9e2d7cb15db28f8eeece2c1b6c00851a61f05846
Author: Carlos Aristu <c.aristu@orisha.com>
Date: 19-12-2024 08:28:55
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/9e2d7cb15db28f8eeece2c1b6c00851a61f05846 [^]

fixes BUG-57436: fix resource leak warning

  Close unclosed BufferedReader by placing it into the
try-with-resources statement.

---
M src/org/openbravo/service/centralrepository/CentralRepository.java
---