use "Method.setAccessible(true)"
sample can be faund in this code:
http://cglib.sourceforge.net/xref/net/sf/cglib/CodeGenerator.html#166

----- Original Message -----
From: "Mark R. Diggory" <[EMAIL PROTECTED]>
To: "BCEL Users List" <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 8:51 PM
Subject: Re: How to get instance of my new Class.


> Thank you for the info, however, I'm slightly confused,
> ClassLoader.defineClass(...) seems to be protected in both
> java.lang.ClassLoader and org.apache.bcel.util.ClassLoader. Is there a
> chance theres a decent example you could point me at in the bcel library
> examples to outline how to do this.
>
> -Mark
>
>
> Juozas Baliuka wrote:
>
> >use ClassLoader.defineClass( byte[], int, int)
> >
> >----- Original Message -----
> >From: "Mark R. Diggory" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, January 17, 2003 8:17 PM
> >Subject: How to get instance of my new Class.
> >
> >
> >
> >
> >>I've written code using the BCEL packages that produces a new Class.
> >>
> >>I can see how to get the byte code or source of the be class and save it
> >>a file from the examples provided, however, I don't really want to do
> >>this yet. I'd like to jusat create a new instance of my class I've
> >>created in the current process in which I generatede it. Does anyone
> >>have suggestions on how I can do this?
> >>
> >>thanks,
> >>Mark
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> >>
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >>For additional commands, e-mail:
> >>
> >>
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to