Article View: borland.public.jbuilder.debugger
Article #125Unable to step into ?
From: JasonYang
Date: Thu, 04 Nov 2004 13:01
Date: Thu, 04 Nov 2004 13:01
20 lines
1827 bytes
1827 bytes
hi,ladies and gentlemen,
1 i want to step into the method toArray(Object[]) of class
java.util.LinkedHashSet ,but when i clicked the button "Step into",it just
stepped over it,why? Moreover,when i put the class java.util.LinkedHashSet
into my project,it also can't step into? would you like to give me some
reasons?
2 My codes is as follows:
ArrayList al=new ArrayList();
al.add("a");
al.add("b");
al.add("c");
LinkedHashSet lset=new LinkedHashSet(al);
String[] ss=new String[1];//array ss has a element
lset.toArray(ss);//please see the source of method toArray(Object[] a) in
the class java.util.LinkedHashSet
//it annouces that it can enlarge the size of array a ,but
when the size of array of real //parameter is
less than the size of set,it will throw an exception,why?
for(int i=0;i<ss.length();i++)
System.out.print(ss[i]); // there's an nullpointer exception
Technical Details
Message-ID:
<418a294b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff5c5,a60b699c9e3e6de1,start X-Google-Attributes: gidff5c5,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "JasonYang" <yfaqiang@mail.sdu.edu.cn> From: "JasonYang" <yfaqiang@mail.sdu.edu.cn> Newsgroups: borland.public.jbuilder.debugger Subject: Unable to step into ? Date: Thu, 4 Nov 2004 21:01:18 +0800 Lines: 23 Organization: sdu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.181 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 NNTP-Posting-Host: 202.110.217.75 Message-ID: <418a294b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099573579 202.110.217.75 (4 Nov 2004 05:06:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail