Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 14133 invoked from network); 23 Dec 2010 06:36:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Dec 2010 06:36:16 -0000 Received: (qmail 96158 invoked by uid 500); 23 Dec 2010 06:36:16 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 95735 invoked by uid 500); 23 Dec 2010 06:36:14 -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 95726 invoked by uid 99); 23 Dec 2010 06:36:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 06:36:13 +0000 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.52.201] (HELO nm4.bullet.mail.ac4.yahoo.com) (98.139.52.201) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 23 Dec 2010 06:36:05 +0000 Received: from [98.139.52.197] by nm4.bullet.mail.ac4.yahoo.com with NNFMP; 23 Dec 2010 06:35:44 -0000 Received: from [98.139.52.145] by tm10.bullet.mail.ac4.yahoo.com with NNFMP; 23 Dec 2010 06:35:44 -0000 Received: from [127.0.0.1] by omp1028.mail.ac4.yahoo.com with NNFMP; 23 Dec 2010 06:35:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 243322.49505.bm@omp1028.mail.ac4.yahoo.com Received: (qmail 87389 invoked by uid 60001); 23 Dec 2010 06:35:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1293086144; bh=IM0l4RMd7cbYiGyfLPk+0Fve12YR8kw7+rskGed+E4c=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=OHM8S7DxYEmLWR5/x2qyvGT1fFe/NTNc+Vozeu/CuYOPG/n2maq7k9wuFKV95oP0wNzFoPY90vVYHjPLOB2cozf3QlcTPQD05jZ7v/Doje2l6KjM37yvGyNf62HH143R1XAiAjooTPEukY+nefSsL9rdaDhFOU6FXzQgrRnh+R8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=SFeuG818dIwsHg6vKpxzMEKsyqrrRddJ8zKnuDc23NVVKTIjKbyoktFlx8uZ7K2PkGKnopEBlfySSP5iY3tW2dFc+WGhTkQKHS6J5AfERJTiJ8ZoV9jbfvX+FqBFEp1GSGjflWmY+50tqcjM+4EfKpfe3EC+TF4+tAU40TRiJ0o=; Message-ID: <97274.78169.qm@web55903.mail.re3.yahoo.com> X-YMail-OSG: BJxOgfsVM1lTeyofvAuVRkZbntG983EIVUSP79GGZfwyval nmAApTHG3r9yqriPA6xIoqVwABbTZ16qVI8RxS.fZoURMzjIxb3KVryil4ys w9lR.8E3esu8Sh338DDGnYY4QoYcuXtqNrn9rB2c4esBY7H4igyQKvEoMNFl Ch8WReq9ea3TjW4UwXoEEk1HjPN_ueN17FQrNQHQ5zDgUTSpdK9OCMT2Qes6 FPTmOGR6VVxLjic9icqUA95sHVhJ6iAruIyuPi7UORPdjB9aEzOT80jDo24T o5cdOsEiDbFBeIyzQ3FQbByhTF9g1fssUWrpa3oU7.z4e.xup6NoXVtw1l1h fkBUEfpM9fblCmx5iUE7f6FgPu267DPquRnHXb6QXmj2qwB_Fngb78BMycAf 7ujQW6YzQPsmntj0- Received: from [218.248.84.81] by web55903.mail.re3.yahoo.com via HTTP; Wed, 22 Dec 2010 22:35:43 PST X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259 Date: Wed, 22 Dec 2010 22:35:43 -0800 (PST) From: hari ks Subject: strong type cast needed in java. (overriding enhancement.) To: dev@harmony.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-610682382-1293086143=:78169" --0-610682382-1293086143=:78169 Content-Type: text/plain; charset=us-ascii I have put up a post here : http://programparadigm.blogspot.com/2010/12/method-overriding-enhancements-strong.html Suppose class B extends A. A a = new B(); ((A)a).foo(); // still calls class B's foo() method. Can something like "a.super.foo();" method invocation be made possible. Or ((A strong)a).foo(); should call A's foo() method with B's instance data. similar thing for C++. Is there a way to already do this? thanks & regards, Hari --0-610682382-1293086143=:78169--