A.java revision 553:9d9f26857129
15962Sgoetz/* 25962Sgoetz * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 310049Sgoetz * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 45962Sgoetz * 55962Sgoetz * This code is free software; you can redistribute it and/or modify it 65962Sgoetz * under the terms of the GNU General Public License version 2 only, as 75962Sgoetz * published by the Free Software Foundation. 85962Sgoetz * 95962Sgoetz * This code is distributed in the hope that it will be useful, but WITHOUT 105962Sgoetz * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 115962Sgoetz * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 125962Sgoetz * version 2 for more details (a copy is included in the LICENSE file that 135962Sgoetz * accompanied this code). 145962Sgoetz * 155962Sgoetz * You should have received a copy of the GNU General Public License version 165962Sgoetz * 2 along with this work; if not, write to the Free Software Foundation, 175962Sgoetz * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 185962Sgoetz * 195962Sgoetz * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 205962Sgoetz * or visit www.oracle.com if you need additional information or have any 215962Sgoetz * questions. 225962Sgoetz */ 235962Sgoetz 245962Sgoetz/* 255962Sgoetz * @test 265962Sgoetz * @bug 4912075 4979456 275962Sgoetz * @summary static import of private field crashes compiler 285962Sgoetz * @author gafter 295962Sgoetz * 305962Sgoetz * @compile A.java B.java 315962Sgoetz */ 325962Sgoetz 335962Sgoetzpackage p1; 345962Sgoetz 355962Sgoetzpublic class A { 365962Sgoetz public static char c = 'A'; 375962Sgoetz} 385962Sgoetz