Under the hood of generics

Under the hood of generics

By Henri Tremblay
Date: Saturday, 24 September 2011 14:00
Duration: 45 minutes
Language: Français
Tags: generics jvm


When the generics appeared in Java they appeared as the solution to the terrible casting and type guessing we used to have all over the place. But we soon discovered that they weren't that easy to manipulate. The dreaded "Type safety: Unchecked" warning wouldn't get away. This session will tell you how it really works under the hood. Many questions are answered. What is a synthetic method? How erasure really works? Why sometimes I just can't remove that warning? What can I do with java.lang.reflect.Type? Or less technically, what are the decisions that made them as they are? What lessons should be taken for further Java developments?


Attended by: Jérôme Fenal, Valentin Robert (‎Ptival‎), marc chantreux (‎eiro‎), Gregory Boissinot, Arnaud Grausem (‎v-eye‎),