diff options
author | cdt <cdt@openoffice.org> | 2000-10-16 14:36:35 +0000 |
---|---|---|
committer | cdt <cdt@openoffice.org> | 2000-10-16 14:36:35 +0000 |
commit | 7bdb36787059fa6f6f9619edc1286dcae360f3c0 (patch) | |
tree | 1d9e80ef24ac7c77272594875d031bef0e3f5f60 /sandbox/com/sun/star/lib | |
parent | 04e13bd6eec0b0af8138dab6a082750c22adc78b (diff) |
Use the standard ClassLoader first
Diffstat (limited to 'sandbox/com/sun/star/lib')
-rw-r--r-- | sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java b/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java index 0674c0a0a1a8..bec06f0da74e 100644 --- a/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java +++ b/sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java @@ -2,9 +2,9 @@ * * $RCSfile: ClassContextImpl.java,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:24:28 $ + * last change: $Author: cdt $ $Date: 2000-10-16 15:36:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -199,7 +199,11 @@ final class ClassContextImpl extends ClassLoader implements ClassContext { Class xClass = null; - + try { + xClass = Class.forName( className ); + } + catch(ClassNotFoundException en) + { try { xClass = findClass(className); } @@ -240,6 +244,7 @@ final class ClassContextImpl extends ClassLoader implements ClassContext { + " " + codeBase); } } + } if (xClass != null && resolve) resolveClass(xClass); |