test/tools/javac/policy/test2/A.java

Tue, 23 Sep 2008 10:44:51 -0700

author
jjg
date
Tue, 23 Sep 2008 10:44:51 -0700
changeset 119
1e83972f53fb
child 554
9d9f26857129
permissions
-rw-r--r--

6420151: need to improve byfile compile policy to eliminate footprint issues
Reviewed-by: mcimadamore

jjg@119 1 /*
jjg@119 2 * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
jjg@119 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@119 4 *
jjg@119 5 * This code is free software; you can redistribute it and/or modify it
jjg@119 6 * under the terms of the GNU General Public License version 2 only, as
jjg@119 7 * published by the Free Software Foundation.
jjg@119 8 *
jjg@119 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@119 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@119 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@119 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@119 13 * accompanied this code).
jjg@119 14 *
jjg@119 15 * You should have received a copy of the GNU General Public License version
jjg@119 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@119 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@119 18 *
jjg@119 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
jjg@119 20 * CA 95054 USA or visit www.sun.com if you need additional information or
jjg@119 21 * have any questions.
jjg@119 22 */
jjg@119 23
jjg@119 24 class A {
jjg@119 25
jjg@119 26 class A1 {
jjg@119 27 }
jjg@119 28
jjg@119 29 static class A2 extends B {
jjg@119 30 }
jjg@119 31
jjg@119 32 static class A3 extends B.Inner {
jjg@119 33 }
jjg@119 34
jjg@119 35 class A4 {
jjg@119 36 void m1() {
jjg@119 37 class A3m1 { }
jjg@119 38 }
jjg@119 39
jjg@119 40 void m2() {
jjg@119 41 new B() {
jjg@119 42 };
jjg@119 43 }
jjg@119 44 }
jjg@119 45
jjg@119 46 }

mercurial