--- old/src/share/classes/com/sun/tools/javac/resources/compiler.properties 2010-07-01 23:39:33.000000000 -0700 +++ new/src/share/classes/com/sun/tools/javac/resources/compiler.properties 2010-07-01 23:39:33.000000000 -0700 @@ -61,6 +61,10 @@ anonymous class implements interface; cannot have type arguments compiler.err.anon.class.impl.intf.no.qual.for.new=\ anonymous class implements interface; cannot have qualifier for new +compiler.misc.arm.not.applicable.to.type=\ + automatic resource management not applicable to value of type {0} +compiler.err.arm.resource.may.not.be.assigned=\ + cannot assign another value to automatic resource variable {0} compiler.err.array.and.varargs=\ cannot declare both {0} and {1} in {2} compiler.err.array.dimension.missing=\ @@ -448,6 +452,8 @@ throws clause not allowed in @interface members compiler.err.try.without.catch.or.finally=\ ''try'' without ''catch'' or ''finally'' +compiler.err.try.without.catch.finally.or.resource.decls=\ + ''try'' without ''catch'', ''finally'' or resource declarations compiler.err.type.doesnt.take.params=\ type {0} does not take parameters compiler.err.type.var.cant.be.deref=\ @@ -1212,6 +1218,13 @@ underscores in literals are not supported in -source {0}\n\ (use -source 7 or higher to enable underscores in literals) +compiler.err.automatic.resource.management.not.supported.in.source=\ + automatic resource management is not supported in -source {0}\n\ +(use -source 7 or higher to enable automatic resource management) + +compiler.warn.automatic.resource.not.referenced=\ + automatic resource {0} is never referenced in body of corresponding try statement + compiler.warn.enum.as.identifier=\ as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ (use -source 5 or higher to use ''enum'' as a keyword)