1.1 --- a/src/share/classes/com/sun/tools/javac/resources/compiler.properties Thu Jul 15 16:31:56 2010 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/resources/compiler.properties Fri Jul 16 19:35:24 2010 -0700 1.3 @@ -61,6 +61,8 @@ 1.4 anonymous class implements interface; cannot have type arguments 1.5 compiler.err.anon.class.impl.intf.no.qual.for.new=\ 1.6 anonymous class implements interface; cannot have qualifier for new 1.7 +compiler.misc.twr.not.applicable.to.type=\ 1.8 + automatic resource management not applicable to variable type 1.9 compiler.err.array.and.varargs=\ 1.10 cannot declare both {0} and {1} in {2} 1.11 compiler.err.array.dimension.missing=\ 1.12 @@ -172,6 +174,8 @@ 1.13 1.14 compiler.err.final.parameter.may.not.be.assigned=\ 1.15 final parameter {0} may not be assigned 1.16 +compiler.err.twr.resource.may.not.be.assigned=\ 1.17 + automatic resource {0} may not be assigned 1.18 compiler.err.multicatch.parameter.may.not.be.assigned=\ 1.19 multi-catch parameter {0} may not be assigned 1.20 compiler.err.multicatch.param.must.be.final=\ 1.21 @@ -448,6 +452,8 @@ 1.22 throws clause not allowed in @interface members 1.23 compiler.err.try.without.catch.or.finally=\ 1.24 ''try'' without ''catch'' or ''finally'' 1.25 +compiler.err.try.without.catch.finally.or.resource.decls=\ 1.26 + ''try'' without ''catch'', ''finally'' or resource declarations 1.27 compiler.err.type.doesnt.take.params=\ 1.28 type {0} does not take parameters 1.29 compiler.err.type.var.cant.be.deref=\ 1.30 @@ -797,6 +803,10 @@ 1.31 compiler.warn.proc.unmatched.processor.options=\ 1.32 The following options were not recognized by any processor: ''{0}'' 1.33 1.34 +compiler.warn.twr.explicit.close.call=\ 1.35 + [arm] explicit call to close() on an automatic resource 1.36 +compiler.warn.automatic.resource.not.referenced=\ 1.37 + [arm] automatic resource {0} is never referenced in body of corresponding try statement 1.38 compiler.warn.unchecked.assign=\ 1.39 [unchecked] unchecked assignment: {0} to {1} 1.40 compiler.warn.unchecked.assign.to.var=\ 1.41 @@ -1217,6 +1227,10 @@ 1.42 underscores in literals are not supported in -source {0}\n\ 1.43 (use -source 7 or higher to enable underscores in literals) 1.44 1.45 +compiler.err.automatic.resource.management.not.supported.in.source=\ 1.46 + automatic resource management is not supported in -source {0}\n\ 1.47 +(use -source 7 or higher to enable automatic resource management) 1.48 + 1.49 compiler.warn.enum.as.identifier=\ 1.50 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ 1.51 (use -source 5 or higher to use ''enum'' as a keyword)