On Mar 26, 7:43 am, Moritz Hammer <newsgroup...@[EMAIL PROTECTED]
>
wrote:
> On Sun, 25 Mar 2007 19:10:28 -0700, danwi...@[EMAIL PROTECTED]
wrote:
> > I think the error is caused by the intern() function in String.java.
> > This is implemented in native code. I bet it somehow messes up.
>
> Have you considered AspectJ or some other kind of bytecode
> instrumentation? I cannot predict whether it will work, but it might be
> worth a try, and your project would become much more publishable.
>
> But apart from technical realizability, I think Tom is right; your
> approach should not be dependent on the ability to modify the String
class.
>
> Regards,
> Moritz
I tried instrumentation using JavaAssist and got the same problem. The
reasons for why I want to modify the string class are rather complex
so I'd rather not get into them.


|