[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bcel-user
Subject:    Re: Loading generated classes
From:       "Juozas Baliuka" <baliuka () centras ! lt>
Date:       2003-05-30 17:12:43
[Download RAW message or body]


----- Original Message -----
From: "Irving, Dave" <Dave.Irving@logicacmg.com>
To: "'BCEL Users List'" <bcel-user@jakarta.apache.org>
Sent: Friday, May 30, 2003 10:18 AM
Subject: Loading generated classes


> Hi all,
>
> I use BCEL to generate stub classes at runtime (to allow generic framework
> classes to wrap type-safe adapter classes).
> Currently I use my own class loader to load the class using the bytes I
> obtain from the ClassGen / JavaClass.
> What Im wondering though is impact on interoperability with other
> potentially custom class loaders already in place (had some problems using
> generated classes with JUnits swing interface). Should I really just be
> making the required (protected) methods of the Current class loader
> accessible and then using them to load my class?

We use reflection to make "defineClass" accesible, I do not think there are
more workarounds.

>
> This e-mail and any attachment is for authorised use by the intended
recipient(s) only.  It may contain proprietary material, confidential
information and/or be subject to legal privilege.  It should not be copied,
disclosed to, retained or used by, any other party.  If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender.  Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bcel-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic