diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-04 09:49:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-04 10:04:21 +0200 |
commit | 3766f2a0d3bc50919366b0e43f5ee8c814019c8b (patch) | |
tree | ddd24e51bc76bb1f8d7817d0fd2a29e3677c98cf /fpicker/README | |
parent | 1d7220d0346c336ca6d7fd6b79beccd1daa070cd (diff) |
Finalizers must not access UNO objects
If the object being finalized (A) has the last reference to the UNO object (B),
and B is actually a proxy for a remote UNO object, then A and B become eligible
for finalization in parallel, and the finalizer of B may already have run when
the finalizer for A runs. That means that B may already have been removed from
the remote bridge, causing an "unknown OID" error from the remote end when the
finalizer of A now tries to make a call on B.
(We try to assert that close() has actually been called before finalize() calls
delete(), but the corresponding exception may be silently swallowed by the JVM
finalization machinery.)
This caused spurious "URP: queryInterface request message with unknown OID
received" failures during JunitTest_dbaccess_unoapi.
Change-Id: Ia47c3ef2c22a6adc75b1b8271eb4b3140accebe7
Diffstat (limited to 'fpicker/README')
0 files changed, 0 insertions, 0 deletions