X-Received: by 10.129.50.85 with SMTP id y82mr19555923ywy.2.1444568744245; Sun, 11 Oct 2015 06:05:44 -0700 (PDT) X-Received: by 10.182.116.130 with SMTP id jw2mr121220obb.4.1444568744141; Sun, 11 Oct 2015 06:05:44 -0700 (PDT) Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!enother.net!enother.net!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!z77no8934456qge.1!news-out.google.com!n2ni26988igy.0!nntp.google.com!kq10no19829976igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: it.comp.java Date: Sun, 11 Oct 2015 06:05:43 -0700 (PDT) In-Reply-To: <65c3af7c-1d35-470b-9a77-e45d327fb7c9@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.12.175.195; posting-account=0gGIFwoAAADY_g510ccNBiAgm55kNm68 NNTP-Posting-Host: 94.12.175.195 References: <22e905b3-621c-47dd-834d-3026149b16b1@googlegroups.com> <65c3af7c-1d35-470b-9a77-e45d327fb7c9@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <05f32f5d-a7bb-46ea-b107-7e08a7699067@googlegroups.com> Subject: Re: casting di un oggetto From: 4ndre4 Injection-Date: Sun, 11 Oct 2015 13:05:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1582 X-Received-Body-CRC: 2199737 Xref: csiph.com it.comp.java:8602 On Saturday, 10 October 2015 22:07:25 UTC+1, rootkit wrote: [...] > ... > Disney personaggio = new Pippo(); > Topolino topolino = (Topolino) personaggio; > ... Ah, si`, giusto, che stupido. In questo caso, effettivamente non si ha un errore a compilazione (IntelliJ evidenza il solito warning in giallo).