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 4975569 6622215 8034861
27 * @summary javap doesn't print new flag bits
28 * @modules jdk.compiler
29 */
30
31 import java.io.*;
32 import java.util.*;
33 import java.util.regex.Matcher;
34 import java.util.regex.Pattern;
35
36 public class T4975569 {
37 private static final String NEW_LINE = System.getProperty("line.separator");
38 private static final String TEST_CLASSES = System.getProperty("test.classes", ".");
39
40 public static void main(String... args) {
41 new T4975569().run();
42 }
43
44 void run() {
45 verify(Anno.class.getName(), "flags: ACC_INTERFACE, ACC_ABSTRACT, ACC_ANNOTATION");
46 verify(E.class.getName(), "flags: ACC_FINAL, ACC_SUPER, ACC_ENUM");
47 verify(S.class.getName(), "flags: ACC_BRIDGE, ACC_SYNTHETIC",
48 "InnerClasses:\n static [# =\\w]+; +// ");
|
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 4975569 6622215 8034861
27 * @summary javap doesn't print new flag bits
28 * @modules jdk.jdeps
29 */
30
31 import java.io.*;
32 import java.util.*;
33 import java.util.regex.Matcher;
34 import java.util.regex.Pattern;
35
36 public class T4975569 {
37 private static final String NEW_LINE = System.getProperty("line.separator");
38 private static final String TEST_CLASSES = System.getProperty("test.classes", ".");
39
40 public static void main(String... args) {
41 new T4975569().run();
42 }
43
44 void run() {
45 verify(Anno.class.getName(), "flags: ACC_INTERFACE, ACC_ABSTRACT, ACC_ANNOTATION");
46 verify(E.class.getName(), "flags: ACC_FINAL, ACC_SUPER, ACC_ENUM");
47 verify(S.class.getName(), "flags: ACC_BRIDGE, ACC_SYNTHETIC",
48 "InnerClasses:\n static [# =\\w]+; +// ");
|