🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #634

Re: ArrayList

#634
From: Petar Popara
Date: Mon, 04 Apr 2005 15:22
26 lines
1699 bytes
I think it is the best to post some code sample:

DBCertificate dbcert = new DBCertificate(a_cert);
ArrayList certs = new ArrayList();
ArrayList crls = new ArrayList();

try {
    while (true) {
        X509Certificate cert = 
getX509CertFromBytes(dbAPI.getCert(dbcert.getIssuerDNDigest()));
        certs.add(cert);

        dbcert = new DBCertificate(cert);

        if (dbcert.getIssuerDNDigest().equals(dbcert.getSubjectDNDigest()))
            break;
    }

    ret.cert = (X509Certificate[])certs.toArray(new X509Certificate[0]);// 
<--- exception

} catch ()

I've also tried to move cert variable out of while(), but it didn't helped. 
while loop loops only once in my test case. 
Technical Details
Message-ID: <42515aa1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42512ba2@newsgroups.borland.com> <xn0e0lkj816f90z002-kdean@www.teamb.com> <42515415@newsgroups.borland.com> <425155e9@newsgroups.borland.com> <42515770@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,b5d68c9c70412a4d
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Petar Popara" <none>
Newsgroups: borland.public.jbuilder.java.language
References: <42512ba2@newsgroups.borland.com> <xn0e0lkj816f90z002-kdean@www.teamb.com> <42515415@newsgroups.borland.com> <425155e9@newsgroups.borland.com> <42515770@newsgroups.borland.com>
Subject: Re: ArrayList
Date: Mon, 4 Apr 2005 17:22:33 +0200
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 193.138.1.206
Message-ID: <42515aa1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112627873 193.138.1.206 (4 Apr 2005 08:17:53 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail