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 5 of 8 Topic 760 of 808
Post > Topic >>

Re: Adding constructor by bytecode instrumentation

by Moritz Hammer <newsgroup001@[EMAIL PROTECTED] > Mar 26, 2007 at 12:24 PM

On Mon, 26 Mar 2007 11:36:05 +0100, Chris Uppal wrote:
> I used [D[D[D as the signature in my test.  Now I come to think about
> it, I can't see why the double[] array doesn't suffer from the same
> problem (double[] is a subclass of Object after all).  But, since it
> doesn't (at least with a Sun 1.6 JVM), a neat way of getting a unique
> signature is to use something like
>     not.defined.Anywhere[]
> as the parameter type (pass a null if you want to invoke it, of course).
Well, I am not entirely sure, but I think it is a bootstrap class loading
issue. java.lang.Object gets loaded anyway, but not.defined.Anywhere
requires a genuine ClassLoader to be loaded, unless put into the bootstrap
classpath. I just checked, if you put it in the bootstrap classpath,
things are working ok. Maybe a cleaner solution than using an "unlikely"
signature - I used "DIFFZIFF" ;-) If not.defined.Anywhere is not put into
the bootstrap classpath, the instrumented ClassLoader subclass gets
screwed, since it requires a loaded instance of not.defined.Anywhere to
get started, and this leads to very strange errors.

Regards,
  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 Jul 9 7:26:10 CDT 2008.