diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2002-07-19 08:02:20 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2002-07-19 08:02:20 +0000 |
commit | 5dd34933da1b4093af35ecbc9ad6ee3de61cdd3f (patch) | |
tree | c2447f72186e3047ae521ecfd1669d9e059f86b9 /jurt/com | |
parent | b27a928c3ab8e32656a32b72a6d667d007dcb283 (diff) |
#101084# resources are now held hard, otherwise resource might become garbagecollected
Diffstat (limited to 'jurt/com')
-rw-r--r-- | jurt/com/sun/star/comp/loader/RegistrationClassFinder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jurt/com/sun/star/comp/loader/RegistrationClassFinder.java b/jurt/com/sun/star/comp/loader/RegistrationClassFinder.java index f3ca73f842cf..1bb05dd4aea6 100644 --- a/jurt/com/sun/star/comp/loader/RegistrationClassFinder.java +++ b/jurt/com/sun/star/comp/loader/RegistrationClassFinder.java @@ -2,9 +2,9 @@ * * $RCSfile: RegistrationClassFinder.java,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jl $ $Date: 2001-11-22 13:26:37 $ + * last change: $Author: jbu $ $Date: 2002-07-19 09:00:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -210,6 +210,7 @@ public class RegistrationClassFinder { throw new ClassNotFoundException( "jar access failed!" ); Resource resource = ResourceProxy.load(url, null); resource.loadJar(url); + m_context.addCargo( resource ); java.io.InputStream inManifest = ResourceProxy.load(new java.net.URL(m_manifest), null).getInputStream(); java.io.BufferedReader manifestReader = new java.io.BufferedReader(new java.io.InputStreamReader(inManifest)); |