 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Hans Olav Stjernholm Guest
|
Posted: Mon Feb 09, 2004 1:39 pm Post subject: JBuilderX Developer: String watches are not showing correct |
|
|
Hi!
I'm using JBuilderX Developer and I'm having trouble with my String watches.
All strings are showing off wrong when I'
ve created a string from the String.substring() function. The substrings are
showing as if they've all got 0 as offset.
String a = "abcdef";
String b = a.substring(3, 5);
string b is appearing in the string watch as "abc", and not "def", even
though it's real value is "def".
This bug was fixed in a JBuilder9 Update.
Is there a way to bypass this problem?!?
|
|
| Back to top |
|
 |
Hin Boen Guest
|
Posted: Mon Feb 09, 2004 8:37 pm Post subject: Re: JBuilderX Developer: String watches are not showing corr |
|
|
Hi Hans,
Can you reproduce the problem with the program below?
public class Test {
public static void main(String[] args) {
String a = "abcdef";
String b = a.substring(3, 5);
System.out.println(b); // add line breakpoint here.
}
}
Thanks
Hin
Hans Olav Stjernholm wrote:
| Quote: | Hi!
I'm using JBuilderX Developer and I'm having trouble with my String watches.
All strings are showing off wrong when I'
ve created a string from the String.substring() function. The substrings are
showing as if they've all got 0 as offset.
String a = "abcdef";
String b = a.substring(3, 5);
string b is appearing in the string watch as "abc", and not "def", even
though it's real value is "def".
This bug was fixed in a JBuilder9 Update.
Is there a way to bypass this problem?!?
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|