File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Features new in Java 7 and the fly likes How does Java 7 handle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "How does Java 7 handle "Generics"" Watch "How does Java 7 handle "Generics"" New topic

How does Java 7 handle "Generics"

Ed Bicker

Joined: Oct 14, 2003
Posts: 12
Welcome Jeff. How does Java 7 handle "Generics"? Compare this to Java 5?
Jeffrey Friesen
Ranch Hand

Joined: Dec 29, 2012
Posts: 67

Hi Ed,

Java 7 introduced the @SafeVarargs compiler annotation to suppress certain warning messages when invoking a varargs method (a method with a variable number of arguments). Also, as pointed out on Web pages such as "Changes in access of variables for generic classes in Java 7" (, certain generics-oriented code that compiled under Java 6 no longer compiles under Java 7. As far as I know, this is the extent of generics changes.

All the best.

I agree. Here's the link:
subject: How does Java 7 handle "Generics"
It's not a secret anymore!