test/tools/javap/T4880672.java

changeset 953
c55928005af4
parent 554
9d9f26857129
child 2525
2eb010b6cb22
equal deleted inserted replaced
952:02ba4ff98742 953:c55928005af4
1 /* 1 /*
2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
22 */ 22 */
23 23
24 24
25 /* 25 /*
26 * @test 26 * @test
27 * @bug 4880672 27 * @bug 4880672 7031005
28 * @summary javap does not output inner interfaces of an interface 28 * @summary javap does not output inner interfaces of an interface
29 */ 29 */
30 30
31 import java.io.*; 31 import java.io.*;
32 import java.util.*; 32 import java.util.*;
37 new T4880672().run(); 37 new T4880672().run();
38 } 38 }
39 39
40 void run() { 40 void run() {
41 verify("java.util.Map", "public interface java.util.Map$Entry"); 41 verify("java.util.Map", "public interface java.util.Map$Entry");
42 verify("T4880672", "class T4880672$A$B extends java.lang.Object"); 42 verify("T4880672", "class T4880672$A$B");
43 verify("C", ""); // must not give error if no InnerClasses attribute 43 verify("C", ""); // must not give error if no InnerClasses attribute
44 if (errors > 0) 44 if (errors > 0)
45 throw new Error(errors + " found."); 45 throw new Error(errors + " found.");
46 } 46 }
47 47

mercurial