1132N/A * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 609N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 609N/A * This code is free software; you can redistribute it and/or modify it 609N/A * under the terms of the GNU General Public License version 2 only, as 609N/A * published by the Free Software Foundation. 609N/A * This code is distributed in the hope that it will be useful, but WITHOUT 609N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 609N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 609N/A * version 2 for more details (a copy is included in the LICENSE file that 609N/A * accompanied this code). 609N/A * You should have received a copy of the GNU General Public License version 609N/A * 2 along with this work; if not, write to the Free Software Foundation, 609N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 609N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 609N/A * or visit www.oracle.com if you need additional information or have any 609N/A * @summary provide examples of code that generate diagnostics 609N/A * @build Example CheckExamples 1132N/A * See CR 7127924 for info on why othervm is used. 609N/A * Check invariants for a set of examples. 609N/A * -- each example should exactly declare the keys that will be generated when 609N/A * -- together, the examples should cover the set of resource keys in the 707N/A * When new keys are added to the resource bundle, it is strongly recommended 609N/A * that corresponding new examples be added here, if at all practical, instead 609N/A * Standard entry point. 609N/A error(
"Example " + e +
" declares key " + k +
" but does not generate it");
609N/A error(
"Example " + e +
" generates key " + k +
" but does not declare it");
609N/A error(
"Example " + e +
" declares key " + k +
" which is also on the \"not yet\" list");
609N/A error(
"Key " +
dk +
" is declared in tests but is not a valid key in resource bundle");
609N/A error(
"Key " +
nk +
" is declared in not-yet list but is not a valid key in resource bundle");
609N/A error(
"Key " +
rk +
" is declared in resource bundle but is not in tests or not-yet list");
609N/A "prefix",
"#keys in tests",
"#keys in javac",
"%"));
609N/A * Get the complete set of examples to be checked. 609N/A * Get the contents of the "not-yet" list. 609N/A * Read the contents of a file.