Hi!
How I can convert from org.apache.bcel.classfile.Method to
java.lang.reflect.Method?
Thanks,
Sergio
On Tue, 26 Feb 2002 [EMAIL PROTECTED] wrote:
> Hi,
>
> I agree in that we should have something that makes mapping from
> Java reflection to BCEL easier, maybe someone should volunteer
> for an adapter class ...
I'm currently doing this anyway so I might as well do it correctly. How do
you think
ilto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. Februar 2002 11:06
> An: BCEL Users List
> Betreff: Re: AW: Reflection && BCEL - Types
>
>
> Dear Markus
>
> My approach currently is
>
> private Type java2BCELType(Class aClass) {
> Type
rs
> Markus
> > -Ursprungliche Nachricht-
> > Von: Andreas Schlapbach [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 25. Februar 2002 20:11
> > An: [EMAIL PROTECTED]
> > Betreff: Reflection && BCEL - Types
> >
> >
> > Hi Lis
signature to a Type object you can then
say Type.getType(sig).
Cheers
Markus
> -Ursprungliche Nachricht-
> Von: Andreas Schlapbach [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 25. Februar 2002 20:11
> An: [EMAIL PROTECTED]
> Betreff: Reflection && BCEL -
s own Type system.
Now, is there an easy way to map this java types on to the BCEL types?
From looking at the API and the source I couldn't find a smooth way.
Something like
|*
MethodGen <cid:[EMAIL PROTECTED]>*(int access_flags,
Class return_type,
Class[] arg_types,