[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java
From: |
Tuomas Lukka |
Subject: |
Re: [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java |
Date: |
Mon, 23 Sep 2002 10:22:23 +0300 |
User-agent: |
Mutt/1.4i |
> + This means two things, apparently:
> + o My JVM handles substring() virtually, so 's.substring(start, end)'
> + is not a copy of a part of 's', but a subrange of the memory range
> + occupied by 's', starting at 'start' and spanning 'end-start'
> + characters. '""+s', on the other hand, creates a copy of 's'.
> + o Something on the C++ side does not respect the string length passed
> + to it by the JVM (it presumably thinks the string is
> + NUL-terminated). So, it displays all the text starting at 'start'
> + till the end of 's'.
> +
> + Therefore, please don't remove the following line until you can be sure
> + the bug explained above has been fixed...
OUCH!
Congratulations on finding it. Hmm.... this *will* need to be fixed,
the question is how to do that in the simplest way.
Tuomas