Java generics end of mystery

Remember my puzzlement in front of http://blog.emmanuelbernard.com/2009/04/java-generics-mystery.html? I usually try to make sense of the unknown type by looking at what should be allowed when two incompatible types are used as the unknown type, and then using the generic type using the unknown type as a reference to a known type to see … [...]

Java generics mystery

Here is a puzzle for Generics gurus.Can somebody explain why Set<Address> addresses = new HashSet<Address>();Set<?> things = addresses;compiles but Set<ConstraintValidator<Address>> validatedAddresses =     new HashSet<ConstraintValidator<Address>>();Set<ConstraintValidator<?>> validatedThings =    validatedAddresses;does not compile?More specifically, the assignment on the second line breaks. [...]

Oracle is buying Sun: best quotes of the day

Alex Miller: “Next version of Java will be Java SE 7.0.0.0.17832″Emmanuel Bernard: “The day an Oracle swallows the Sun and in front the Business Machine. No kidding it’s a Titans fight.”Max Andersen: Thinking when Orsun will introduce a String in Java that says null == “”Alexis MP: “Checking my blog posts tagged with “oracle”. … [...]

Les Cast Codeurs Podcast is born

I have just started a new podcast with a few French open source activists. All about Java, all in French. If you know French, read on ; otherwise, well… learn :) Les Cast Codeurs Podcast est dans les bacs!Le podcast en français dans le code sur Java par Emmanuel Bernard (JBoss, Hibernate), Guillaume Laforge (SpringSource, … [...]

Podcast on Bean Validation lastest PFD

I have recently been interviewed by Kenneth Rimple for the Chariot TechCast. In this podcast, we speak to JBoss’s Emmanuel Bernard on the future of validation using JSR-303, the Bean Validation framework. JSR-303 aims to provide an annotation-driven mechanism to mark plain old java beans with annotations, such as @NotNull, @Min, @Max, and … [...]