Project Coin: JSR 334 in Public Review
By Darcy-Oracle on Mar 24, 2011
After successfully going through early draft review, JSR 334 has now entered another phase: public review. Compared to the earlier draft review specification (v0.75), the main changes in the public draft review specification (v0.875) are:
The specification for diamond was expanded and clarified. Using diamond on a non-generic class is explicitly forbidden.
The specification for multi-catch was expanded and made more precise.
Several changes related to the
try-with-resources statement has dropped support for a resource to be given as a general expression without an accompanying explicit variable declaration.
An optional trailing semicolon is allowed to terminate the sequence of resources in a resource specification rather than producing a syntax error.
The compiler-generated calls to the
closemethod of a resource in a
try-with-resources statement only occur if the resource is non-
Strong warnings were added to the javadoc of
AutoCloseableabout having the
@SafeVarargsannotation was applied to appropriate places in the platform libraries.
JLSv3 changes were provided for the simplified varargs method invocation feature.