On Thu, 8 Apr 2004 09:08:13 +0200 (CEST), [EMAIL PROTECTED] wrote: >> You need to be very careful when changing UTF8 constants, because they are >> shared not only by method/field signatures, they are also shared with the >> literal strings in the program. > This is very important, indeed. This wipes my idea of just changing the > Utf8 entry of the table. Is this sharing of constant pool entries > documented anywhere? When skimmubg through the constant pool chapter of > the JVM spec again I couldn't find anything about this. Another question > that raises from this: Is the constant pool a 'set', meaning that no > duplicates ever occur?
I believe that the book, 'Inside the Java Virtual Machine' covers this. I don't have the book on hand at the moment, but some of it's contents are available at http://www.artima.com/insidejvm/blurb.html. Unfortunately, it seems that the details of the section that you would be most interested in are not available online. However, they do have links to other promissing resources that may be of interest to you. Good luck. -- __ __ / /\ / /\/ / /_ ------------------------------------ / / \/ / /\ Mark Crocker / / /\ \ \/ / [EMAIL PROTECTED] / / \_\/\ / http://www.markcrocker.com/~mcrocker /__/ /\ \ \_\/ ------------------------------------ \ \ \_\/ \ \ \ \__\/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
