Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 74905 invoked from network); 5 Jun 2006 14:53:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 14:53:50 -0000 Received: (qmail 2091 invoked by uid 500); 5 Jun 2006 14:53:46 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 2053 invoked by uid 500); 5 Jun 2006 14:53:45 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 2042 invoked by uid 99); 5 Jun 2006 14:53:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 07:53:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ivan.volosyuk@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 07:53:44 -0700 Received: by py-out-1112.google.com with SMTP id c63so1283597pyc for ; Mon, 05 Jun 2006 07:53:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EHHIOktQTJiWUsODlRHV3NcCR9eKX9qNDhCn/Jja/PbMA2ShIwx5uqW2B9DaVJY60DpdXqj3eCQTTVAdrSnXjD+KKhDkmHCHCrA1/xI/z2mLY1puSiNBDguwuFx4wsdEDGi6+DTkgICofZJz9QTUv1VUgROobpGlXzi5rKdNMgU= Received: by 10.35.132.13 with SMTP id j13mr6676036pyn; Mon, 05 Jun 2006 07:53:22 -0700 (PDT) Received: by 10.35.115.14 with HTTP; Mon, 5 Jun 2006 07:53:22 -0700 (PDT) Message-ID: <12385bbd0606050753r2a1a81b2o94aa098d11138e23@mail.gmail.com> Date: Mon, 5 Jun 2006 18:53:22 +0400 From: "Ivan Volosyuk" To: harmony-dev@incubator.apache.org Subject: Re: jchevm status? In-Reply-To: <448438E7.10305@dellroad.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12385bbd0605131250y79aa7f50j325d472e97bc94b6@mail.gmail.com> <4dd1f3f00605212011w2f0fb22fr25d7e988993ce24e@mail.gmail.com> <44720763.2020006@dellroad.org> <4dd1f3f00605221333xfb6d7bcl8c99dd531e5d681e@mail.gmail.com> <44723A3B.9080403@dellroad.org> <4dd1f3f00605300843m4fc7a585la3e96984affd9ac3@mail.gmail.com> <12385bbd0605300914g1c0c4959u5b4081ed5052088@mail.gmail.com> <448348BE.3040802@dellroad.org> <12385bbd0606050403m702863cv5e59ce1449fc4c7e@mail.gmail.com> <448438E7.10305@dellroad.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The difference is that access to that field should be done without reflection. I don't have the jchevm at hand, but I think the problematic code should look like: interface I { static final int field = 123; } class S implements I { } public static C extends S { public static void main(String[] args) { System.out.println(field); } } I didn't tested wether it fails. I will check it when get home. -- Ivan 2006/6/5, Archie Cobbs : > Ivan Volosyuk wrote: > > Btw, I have found problem is classloader in jchevm. > > Resolution of field in interface of superclass of some class fails. > > Reproducible at eclipse. I have a patch with fix. It's quite simple. I > > can send it at evening too. > > Do you have a simple test case? This one seems to work OK: > > public class FieldRes { > public static interface FieldResInterface { > int field = 123; > } > public static class FieldResSuperclass implements FieldResInterface { > } > public static class FieldResClass extends FieldResSuperclass { > } > public static void main(String[] args) throws Exception { > FieldResClass obj = new FieldResClass(); > System.out.println(obj.getClass().getField("field")); > System.out.println(obj.field); > } > } > > -Archie > > __________________________________________________________________________ > Archie Cobbs * CTO, Awarix * http://www.awarix.com > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > -- Ivan Intel Middleware Products Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org