# Re: Loading Security Provider Classes via ClassLoader

Roland Schemers (Roland.Schemers@Eng)
Tue, 28 Apr 1998 12:27:29 -0800 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"
- Previous message: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"
- In reply to: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"
- Next in thread: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"

    From: Roland.Schemers@Eng (Roland Schemers)

    Message-Id: <199804281927.MAA08622@crypto.eng.sun.com>

    Subject: Re: Loading Security Provider Classes via ClassLoader

    To: Roland.Schemers@Eng (Roland Schemers)

    Date: Tue, 28 Apr 1998 12:27:29 -0800 (PDT)

    In-Reply-To: <199804281924.MAA08604@crypto.eng.sun.com> from "Roland Schemers" at Apr 28, 98 12:24:34 pm

> The solution is to do something like the following instead of simply doing
> Class.forName:

oops. the following:

> ClassLoader cl = provider.getClassLoader();
> if (cl != null)
> provider.getClassLoader().loadClass(className);
> else
> Class.forName(className);
>

should be:

ClassLoader cl = provider.getClassLoader();
Class c;

if (cl != null)
c = cl.loadClass(className);
else
c = Class.forName(className);

roland

- Next message: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"
- Previous message: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"
- In reply to: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"
- Next in thread: Roland Schemers: "Re: Loading Security Provider Classes via ClassLoader"