Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: Java 8 Lambda with generic types Date: Sun, 28 Aug 2016 15:00:51 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="aeef5e178076fda4998e4379bb1adbab"; logging-data="32187"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GbJI3vVhZ5tUjLEvBgGZB7AgPm5jND5Q=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: Cancel-Lock: sha1:v47QDLx0sKnxubGYu387RP8y9H0= Xref: csiph.com comp.lang.java.programmer:35487 On 28/08/16 12:46, Arne Vajhøj wrote: > I think the problem really is in your checkToy method. > > The following works fine: > > import java.util.Arrays; > import java.util.List; > > public class GenFun { > public static interface Toy { > public List get(); > } > public static void checkToy(Toy toy) { I found that worked too, but what is the difference between that and , when E is only referenced once? -- ss at comp dot lancs dot ac dot uk