Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 357A4812C for ; Mon, 5 Sep 2011 02:20:59 +0000 (UTC) Received: (qmail 34902 invoked by uid 500); 5 Sep 2011 02:20:57 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 34828 invoked by uid 500); 5 Sep 2011 02:20:56 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 34820 invoked by uid 99); 5 Sep 2011 02:20:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 02:20:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rocketraman@fastmail.fm designates 66.111.4.28 as permitted sender) Received: from [66.111.4.28] (HELO out4.smtp.messagingengine.com) (66.111.4.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 02:20:49 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id E402623C99 for ; Sun, 4 Sep 2011 22:20:28 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 04 Sep 2011 22:20:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=ciiOEB2bxaAtnA0RyIACLk gbEEM=; b=s0p2HMRJW10K5bBAey2LVwV3mAY1l66YT0UxdJVazn9gMW7d9xv0DG aqSUvtBEscPn4q5KqaK3WXo8mnZdgw+iil8EOGCJeLE7lwUn2dllAWUpH3dxVCGL 8ssL6fE3K+8c7t3Q1+5LlBm6rLWsL8MIVjY+n7P28yxpe9Nz6FkQI= X-Sasl-enc: 4jgTSE4lJpKGMJ/Ev0TRSf2pK6v4TDYsOZaG+ZdN9axT 1315189228 Received: from [192.168.1.5] (CPE000db9166236-CM602ad06d1aa0.cpe.net.cable.rogers.com [99.224.155.40]) by mail.messagingengine.com (Postfix) with ESMTPSA id 7E8805801EA for ; Sun, 4 Sep 2011 22:20:28 -0400 (EDT) Message-ID: <4E6431EA.1040302@fastmail.fm> Date: Sun, 04 Sep 2011 22:20:26 -0400 From: Raman Gupta User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: dev@commons.apache.org Subject: Re: [chain][v2] clever context References: <4E63D1F5.7020602@fastmail.fm> In-Reply-To: X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On 09/04/2011 04:00 PM, James Carman wrote: > On Sun, Sep 4, 2011 at 3:44 PM, Simone Tripodi wrote: >> >> That is able to 'auto-cast' the retrieved object while Map#get() not. >> > > I believe the feature is actually called "type inference", not "auto-cast." :) Thanks for the explanation... I see now that via the generic method the compiler infers the return type from the assignment type. Cheers, Raman --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org