PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting PD4Device.finalize() closes output stream and causes mixup! Re: Re: PD4Device.finalize() closes output stream and causes mixup!

#28893

Currently PD4Device.finalize() looks like that:

[language=java:yltto70d]/**
* @see java.lang.Object#finalize()
*/
public void finalize() {
// dispose();
}[/language:yltto70d]

Unfortunately I could not find in our source control system when exactly the dispose() call has been commented out. But it definitely happened more that 2 years ago.

dispose() method is triggered once now. The method forces collected PDF metadata to be written and it still closes the output stream.

I would recommend to wait the next 2-3 hours – we plan to get from QA and to release the newest version today. Of you can get it on Monday.