8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 6964768 6964461 6964469 6964487 6964460 6964481 6980021 27 * @summary need test program to validate javac resource bundles 28 * @modules jdk.jdeps/com.sun.tools.classfile 29 * jdk.compiler/com.sun.tools.javac.code 30 */ 31 32 import java.io.*; 33 import java.lang.reflect.Layer; 34 import java.lang.reflect.Module; 35 import java.util.*; 36 import javax.tools.*; 37 import com.sun.tools.classfile.*; 38 import com.sun.tools.javac.code.Lint.LintCategory; 39 40 /** 41 * Compare string constants in javac classes against keys in javac resource bundles. 42 */ 43 public class CheckResourceKeys { 44 /** 45 * Main program. 46 * Options: 47 * -finddeadkeys 48 * look for keys in resource bundles that are no longer required 49 * -findmissingkeys | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 6964768 6964461 6964469 6964487 6964460 6964481 6980021 27 * @summary need test program to validate javac resource bundles 28 * @modules jdk.compiler/com.sun.tools.javac.code 29 * jdk.compiler/com.sun.tools.javac.resources:open 30 * jdk.jdeps/com.sun.tools.classfile 31 */ 32 33 import java.io.*; 34 import java.lang.reflect.Layer; 35 import java.lang.reflect.Module; 36 import java.util.*; 37 import javax.tools.*; 38 import com.sun.tools.classfile.*; 39 import com.sun.tools.javac.code.Lint.LintCategory; 40 41 /** 42 * Compare string constants in javac classes against keys in javac resource bundles. 43 */ 44 public class CheckResourceKeys { 45 /** 46 * Main program. 47 * Options: 48 * -finddeadkeys 49 * look for keys in resource bundles that are no longer required 50 * -findmissingkeys |