Class2.java revision 3233:b5d08bc0d224
1139749Simp/* 2156000Smjacob * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 3101704Smjacob * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4101704Smjacob * 5101704Smjacob * This code is free software; you can redistribute it and/or modify it 6101704Smjacob * under the terms of the GNU General Public License version 2 only, as 7101704Smjacob * published by the Free Software Foundation. 8101704Smjacob * 9101704Smjacob * This code is distributed in the hope that it will be useful, but WITHOUT 10101704Smjacob * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11101704Smjacob * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12101704Smjacob * version 2 for more details (a copy is included in the LICENSE file that 13101704Smjacob * accompanied this code). 14101704Smjacob * 15101704Smjacob * You should have received a copy of the GNU General Public License version 16101704Smjacob * 2 along with this work; if not, write to the Free Software Foundation, 17101704Smjacob * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18101704Smjacob * 19101704Smjacob * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20101704Smjacob * or visit www.oracle.com if you need additional information or have any 21101704Smjacob * questions. 22101704Smjacob */ 23101704Smjacob 24101704Smjacobpackage pkg1; 25101704Smjacob 26101704Smjacob/** 27156000Smjacob * <pre> 28156000Smjacob * Result: {@value pkg1.Class1#TEST_7_PASSES} 29156000Smjacob * Result: {@value pkg2.Class3#TEST_12_PASSES} 30156000Smjacob * </pre> 31156104Smjacob */ 32156000Smjacobpublic class Class2 { 33156000Smjacob 34156000Smjacob /** 35156000Smjacob * <pre> 36156000Smjacob * Result: {@value pkg1.Class1#TEST_8_PASSES} 37156000Smjacob * Result: {@value pkg2.Class3#TEST_13_PASSES} 38156000Smjacob * </pre> 39156000Smjacob */ 40156000Smjacob public int field; 41156000Smjacob 42156000Smjacob /** 43156000Smjacob * <pre> 44156000Smjacob * Result: {@value pkg1.Class1#TEST_9_PASSES} 45156104Smjacob * Result: {@value pkg2.Class3#TEST_14_PASSES} 46156000Smjacob * </pre> 47156000Smjacob */ 48156000Smjacob public Class2() {} 49156000Smjacob 50156000Smjacob /** 51156000Smjacob * <pre> 52156000Smjacob * Result: {@value pkg1.Class1#TEST_10_PASSES} 53156000Smjacob * Result: {@value pkg2.Class3#TEST_15_PASSES} 54156000Smjacob * </pre> 55156000Smjacob */ 56156000Smjacob public void method() {} 57147883Sscottl 58156000Smjacob /** 59156000Smjacob * <pre> 60159052Smjacob * Result: {@value pkg1.Class1#TEST_11_PASSES} 61159052Smjacob * Result: {@value pkg2.Class3#TEST_16_PASSES} 62159052Smjacob * </pre> 63159052Smjacob */ 64101704Smjacob public class NestedClass{} 65156000Smjacob} 66147883Sscottl