🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.debugger
Article #330

Re: JBuilderX Developer: String watches are not showing correct value

#330
From: Hin Boen
Date: Mon, 09 Feb 2004 20:37
36 lines
1971 bytes
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:

>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?!?
>
>
>  
>
Technical Details
Message-ID: <4027eeaa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!news.octanews.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40278db7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5c5,30d9e4f211f94feb
X-Google-Attributes: gidff5c5,public
X-Google-ArrivalTime: 2004-02-09 12:40:30 PST
Date: Mon, 09 Feb 2004 12:37:10 -0800
From: Hin Boen <hboen@borland.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.debugger
Subject: Re: JBuilderX Developer: String watches are not showing correct value
References: <40278db7@newsgroups.borland.com>
In-Reply-To: <40278db7@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.143.11.228
Message-ID: <4027eeaa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076358826 10.143.11.228 (9 Feb 2004 12:33:46 -0800)
Lines: 37
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!news.octanews.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail