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 8046171
27 * @summary Setup nestmate calls to private methods then use
28 * modified jcod classes to introduce errors. Test with
29 * and without verification enabled
30 * @compile -XDdisablePrivateAccessors TestInvokeErrors.java
31 * @compile MissingMethod.jcod
32 * MissingMethodWithSuper.jcod
33 * MissingNestTop.jcod
34 * @run main TestInvokeErrors true
35 * @run main/othervm -Xverify:none TestInvokeErrors false
36 */
37
38 public class TestInvokeErrors {
39
40 static class Nested {
41 private void priv_invoke() {
42 System.out.println("Nested::priv_invoke");
43 }
44 }
45
46 static class MissingMethod {
47 // jcod version will rename this method to not_priv_invoke
48 private void priv_invoke() {
49 System.out.println("MissingMethod::priv_invoke");
50 }
|
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 8046171
27 * @summary Setup nestmate calls to private methods then use
28 * modified jcod classes to introduce errors. Test with
29 * and without verification enabled
30 * @compile TestInvokeErrors.java
31 * @compile MissingMethod.jcod
32 * MissingMethodWithSuper.jcod
33 * MissingNestTop.jcod
34 * @run main TestInvokeErrors true
35 * @run main/othervm -Xverify:none TestInvokeErrors false
36 */
37
38 public class TestInvokeErrors {
39
40 static class Nested {
41 private void priv_invoke() {
42 System.out.println("Nested::priv_invoke");
43 }
44 }
45
46 static class MissingMethod {
47 // jcod version will rename this method to not_priv_invoke
48 private void priv_invoke() {
49 System.out.println("MissingMethod::priv_invoke");
50 }
|