C4.java revision 3233:b5d08bc0d224
1217309Snwhitehorn/* 2224014Snwhitehorn * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. 3217309Snwhitehorn * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4220749Snwhitehorn * 5217309Snwhitehorn * This code is free software; you can redistribute it and/or modify it 6220749Snwhitehorn * under the terms of the GNU General Public License version 2 only, as 7217309Snwhitehorn * published by the Free Software Foundation. 8217309Snwhitehorn * 9217309Snwhitehorn * This code is distributed in the hope that it will be useful, but WITHOUT 10217309Snwhitehorn * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11217309Snwhitehorn * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12217309Snwhitehorn * version 2 for more details (a copy is included in the LICENSE file that 13217309Snwhitehorn * accompanied this code). 14217309Snwhitehorn * 15217309Snwhitehorn * You should have received a copy of the GNU General Public License version 16217309Snwhitehorn * 2 along with this work; if not, write to the Free Software Foundation, 17217309Snwhitehorn * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18217309Snwhitehorn * 19217309Snwhitehorn * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20217309Snwhitehorn * or visit www.oracle.com if you need additional information or have any 21217309Snwhitehorn * questions. 22217309Snwhitehorn */ 23217309Snwhitehorn 24217309Snwhitehornpackage pkg1; 25217309Snwhitehorn 26217309Snwhitehornpublic class C4 { 27217309Snwhitehorn /** 28217309Snwhitehorn * Field in C4. 29220749Snwhitehorn */ 30217309Snwhitehorn public UsedClass fieldInC4; 31217309Snwhitehorn 32217309Snwhitehorn /** 33217309Snwhitehorn * A duplicated field 34217309Snwhitehorn */ 35217309Snwhitehorn public UsedClass zfield; 36217309Snwhitehorn 37217309Snwhitehorn /** 38220749Snwhitehorn * Method in C4. 39217309Snwhitehorn * @param p a param 40217309Snwhitehorn * @return UsedClass 41217309Snwhitehorn */ 42217309Snwhitehorn public UsedClass methodInC4(UsedClass p) {return p;} 43217309Snwhitehorn 44217309Snwhitehorn /** 45217309Snwhitehorn * A duplicated method to test ordering 46217309Snwhitehorn * @param p a param 47217309Snwhitehorn * @return UsedClass 48217309Snwhitehorn */ 49217309Snwhitehorn public UsedClass zmethod(UsedClass p) {return p;} 50217309Snwhitehorn} 51217309Snwhitehorn