Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 78197 invoked from network); 24 Apr 2007 11:51:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2007 11:51:09 -0000 Received: (qmail 66065 invoked by uid 500); 24 Apr 2007 11:51:13 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 66034 invoked by uid 500); 24 Apr 2007 11:51:13 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 66022 invoked by uid 99); 24 Apr 2007 11:51:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 04:51:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexey.v.varlamov@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 04:51:06 -0700 Received: by an-out-0708.google.com with SMTP id b2so2450014ana for ; Tue, 24 Apr 2007 04:50:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ag1Yfv3+deuDD/l/29PWNeZEKVTkn8Eey56MRj7tadoM06vWLaBl2Wmti9fkCagpA0Dv3Nf4Q1r7kdOO1Va3sAEBPgvHD7VFJv4x7rs3CWXVyXwNZV4ydERM2xQONg0r/bMC5C4dsfi3ASSpXUlx10QBojWizQySumjxOccKaa0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=be692Q4cjpRL4ADVQ3BaFTeGA6eGAhMuXmPIjskHo8LXN3sNSfJvHVcxOUzONxLDzCvCua/GnH5gPAyi5pkjmS6R8nV723jk8+oA8XvWqCGyFCAQ2dofMXikaTj87Sbux8QkkfsYemkj1xy50E1EgAIhkz5dzMsbeNnoT12NzbQ= Received: by 10.100.195.10 with SMTP id s10mr4462275anf.1177415445487; Tue, 24 Apr 2007 04:50:45 -0700 (PDT) Received: by 10.100.8.4 with HTTP; Tue, 24 Apr 2007 04:50:45 -0700 (PDT) Message-ID: Date: Tue, 24 Apr 2007 18:50:45 +0700 From: "Alexey Varlamov" To: dev@harmony.apache.org Subject: Re: [jdktools][jpda] Adapt Eclipse JDI implementation to complete JPDA support in Harmony In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org 2007/4/24, Ivan Popov : > I've run several experiments with JDI implementation from Eclipse and > was able to use it for running JDB debugger demo and Netbeans > debugger. However, there are several issues that should be solved. > > 1. Eclipse 3.0 provides quite independent JDI implementation, one can > use two separate jars from JDT runtime bundle: > > jdi.jar - JDI API interfaces > jdimodel.jar - JDI implementation > > But it corresponds to 1.4 and works not stable with Netbeans debugger, > so it is not the case. > > 2. In the newer Eclipse 3.2 and 3.3 JDI implementation corresponds to > 1.5 and works well with both JDB and Netbeans (except of a few issues > mentioned below). Unfortunately, it introduces dependencies on two > additional jars (for formatting error messages and NLS support): > > com.ibm.icu.base_3.6.0.20061215.jar - from com.ibm.icu.base bundle > org.eclipse.osgi_3.3.0.v20070321.jar - from RCP Runtime Binary bundle > > The first one is quite small and independent bundle available from > Eclipse download site and I think it's OK to add it to Harmony > together with JDI jars. For the second one an easy stub can be > implemented to eliminate this dependency. > > 3. All Java debuggers expect that JDI API is located in > JDK/lib/tools.jar and implicitly add it to classpath when debugger is > started. This means we need to repackage all classes from Eclipse's > jdi.jar to Harmony's tools.jar. I don't like this solution, but it > seems the only possible one. I hope there are no legal issues with > such repackage. All other jars can be added separately and loaded with > special class loader, similar to what is already implemented for > Eclipse compiler jar. > > 4. There are a few bugs in implementation of JDI connectors which > throw NPE when are used in JDB and Netbeans debuggers. I fixed this in > my experiments and fix is rather simple. I can submit bug to Eclipse > and attach this fix. I hope Eclipse folks can apply it quickly. > > If nobody objects I will proceed with items 2-4. And yes, your effort is very much appreciated ;) > > Thanks. > Ivan >