656N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 656N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 656N/A * This code is free software; you can redistribute it and/or modify it 656N/A * under the terms of the GNU General Public License version 2 only, as 656N/A * published by the Free Software Foundation. 656N/A * This code is distributed in the hope that it will be useful, but WITHOUT 656N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 656N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 656N/A * version 2 for more details (a copy is included in the LICENSE file that 656N/A * accompanied this code). 656N/A * You should have received a copy of the GNU General Public License version 656N/A * 2 along with this work; if not, write to the Free Software Foundation, 656N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 656N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 656N/A * or visit www.oracle.com if you need additional information or have any 656N/A * @summary new option -Xpkginfo for better control of when package-info.class is generated 656N/A // create annotated package statement with all combinations of retention policy 656N/A sb.
append(
"@Retention(RetentionPolicy.SOURCE) @interface SR { }\n");
656N/A sb.
append(
"@Retention(RetentionPolicy.CLASS) @interface CR { }\n");
656N/A sb.
append(
"@Retention(RetentionPolicy.RUNTIME) @interface RR { }\n");
656N/A // test specific tmp directory 656N/A // build up list of options and files to be compiled 656N/A //opts.add("-verbose"); 656N/A error(
"package-info.class found but not expected");
656N/A error(
"package-info.class expected but not found");
656N/A /** Compile files with options provided. */ 656N/A /** Write a file with a given body. */ 656N/A /** Report an error. */ 656N/A /** Test case counter. */ 656N/A /** Number of errors found. */