As I'm sure you know, doing this would be extremely thorny, but there's no reason you couldn't. I can think of a couple cases (dynamically generated JSPs, JDOs for dynamically created tables) where it could even border on usefulness. While you can't modify a class that has already been loaded (add attributes/methods), you can fairly easily create new classes, get them compiled, loaded, and execute them with reflective calls. It's fringe and of questionable utility, but certainly possible.
justin
At 05:40 AM 11/27/2002, you wrote:
Hi all, I know this is off-topic, but I just had a crazy idea and couldn't find about it anywhere... There is a way to modify/create java classes at runtime? I mean, create plain new classes, or add attributes/methods to an existing, etc?Maybe I'm asking for Java++? :-) -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- 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]>