Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] CheckIn:Override the finalize() method in SmartCache to call the close() method.

- Summary:
Override the finalize() method in SmartCache to call the close() method.


- Bugzilla Bug (s) Resolved:

N/A

 

-        Description:

The close() method in class SmartCache close result cache and do clean up work here. As for DiskCache, the temporary file will be deleted. So it is important to call this method when this cache will not be used any more. But now this method hasn't been called in many cases.For example the call for the close() method of IResultIterator is missed. Override the finalize() method in SmartCache to call the close() method. This checkin can't resolve the problem completely because Java does not guarantee when  call finalize() method. An object may never be garbage collected, so finalize() is not called even when the application terminates.


- Tests Description:
Unit test.


- Notes to Build Team:
N/A


- Notes to Developers:
N/A


- Notes to QA: 
 

N/A

 

- Notes to Documentation:  

 

- Files Added:

N/A

 

- Files Edited

/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cach/SmartCache.java

 

- Files Deleted

N/A 

 

 

 

 

 

 

 


Back to the top