Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: Adding cons...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 760 of 843
Post > Topic >>

Re: Adding constructor by bytecode instrumentation

by Moritz Hammer <newsgroup001@[EMAIL PROTECTED] > Mar 23, 2007 at 10:18 AM

On Tue, 20 Mar 2007 22:59:01 +0000, Chris Uppal wrote:
> Yes it can be done.  I've just tried it with JDK 1.6.0 and it seems to
work
> fine.
Just for the record: Indeed it works, and it only takes some minor
modification to the java_crw_demo sources supplied with JDK 1.6
(persumably
with 1.5 also) to get things working. There is a minor issue with
obtaining a unique constructor signature, which I first attempted to get
with a unique class reference; but this leads to problems, since the class
loader cannot load the class it has been instrumented with... I would have
to add that class to the bootstrap class loader, but then I just went with
a very obscure combination of primitive types as the signature; it will be
fun to see when I get clashes with existing constructors ;-)

Thank you for your reply,
  Moritz
 




 8 Posts in Topic:
Adding constructor by bytecode instrumentation
Moritz Hammer <newsgro  2007-03-20 10:31:39 
Re: Adding constructor by bytecode instrumentation
"Chris Uppal" &  2007-03-20 22:59:01 
Re: Adding constructor by bytecode instrumentation
Moritz Hammer <newsgro  2007-03-23 10:18:44 
Re: Adding constructor by bytecode instrumentation
"Chris Uppal" &  2007-03-26 11:36:05 
Re: Adding constructor by bytecode instrumentation
Moritz Hammer <newsgro  2007-03-26 12:24:53 
Re: Adding constructor by bytecode instrumentation
"Chris Uppal" &  2007-03-27 06:30:04 
Re: Adding constructor by bytecode instrumentation
Moritz Hammer <newsgro  2007-03-27 08:58:39 
Re: Adding constructor by bytecode instrumentation
"Cyril Shelest"  2007-03-29 22:23:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 14:39:17 CST 2008.