Forums Register Login

How does Java 7 handle "Generics"

+Pie Number of slices to send: Send
Welcome Jeff. How does Java 7 handle "Generics"? Compare this to Java 5?
1
+Pie Number of slices to send: Send
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" (http://stackoverflow.com/questions/10782876/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.

Jeff
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1114 times.
Similar Threads
Generics...
Generics
Generics
Generics <?>
confused with generics
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:28:23.