T4848619a.java revision 553:9d9f26857129
119304Speter/* 219304Speter * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 319304Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 419304Speter * 519304Speter * This code is free software; you can redistribute it and/or modify it 619304Speter * under the terms of the GNU General Public License version 2 only, as 719304Speter * published by the Free Software Foundation. 819304Speter * 9254225Speter * This code is distributed in the hope that it will be useful, but WITHOUT 1019304Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1119304Speter * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1219304Speter * version 2 for more details (a copy is included in the LICENSE file that 1319304Speter * accompanied this code). 1419304Speter * 1519304Speter * You should have received a copy of the GNU General Public License version 1619304Speter * 2 along with this work; if not, write to the Free Software Foundation, 1719304Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1819304Speter * 1919304Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2019304Speter * or visit www.oracle.com if you need additional information or have any 2119304Speter * questions. 2219304Speter */ 2319304Speter 2419304Speter/* 2519304Speter * @test 2619304Speter * @bug 4848619 2719304Speter * @summary static final variable declared after use and self initialized 2819304Speter * @author Peter von der Ah\u00e9 2919304Speter * @compile/fail T4848619a.java 30 */ 31 32public class T4848619a { 33 static void m() { System.err.println(X); }; 34 private static final String X = X; 35} 36