Java generics and varargs

As almost always, Angelika Langer’s Java generics FAQ explains it in great detail. (Scroll to “Why does the compiler sometimes issue an unchecked warning when I invoke a “varargs” method?” – the ID doesn’t work well.)

Basically, you end up losing information in a worse way than normal. Yet another little pain point in Java generics 🙁

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)