This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: Java 9's other new enhancements, Part 2
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
JEP 213: Milling Project Coin defines a set of small language changes for Java 9. Three of these changes are related to the OpenJDK Project Coin-based language changes that debuted in Java 7, and the other two changes are considered Coin-like. This post introduces you to all of these tiny language improvements.
Smoothing Project Coin
JEP 213 broadens the scope of Java 7's SafeVarargs annotation type and diamond operator while enhancing the try-with-resources statement. This section explores all of these changes.
Allowing SafeVarargs to support private methods
Java 7 introduced the SafeVarargs annotation type for asserting that the bodies of annotated final or static methods, or constructors (which can be seen as a special kind of static method) do not perform potentially unsafe operations on their varargs (variable number of arguments) parameters. Java 9 expands this capability to also include private methods.