ExtraSemiTest.java revision 666
666N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 666N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 666N/A * This code is free software; you can redistribute it and/or modify it 666N/A * under the terms of the GNU General Public License version 2 only, as 666N/A * published by the Free Software Foundation. 666N/A * This code is distributed in the hope that it will be useful, but WITHOUT 666N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 666N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 666N/A * version 2 for more details (a copy is included in the LICENSE file that 666N/A * accompanied this code). 666N/A * You should have received a copy of the GNU General Public License version 666N/A * 2 along with this work; if not, write to the Free Software Foundation, 666N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 666N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 666N/A * or visit www.oracle.com if you need additional information or have any 666N/A * @summary spurious semicolons in class def cause empty NOPOS blocks 666N/A " class X { int i;; };\n" +
666N/A // There are no empty blocks in the original text. 666N/A // C will be given a default constructor "C() { super(); }" which 666N/A // does not have any empty blocks. 666N/A // The bug is that spurious semicolons in the class defn are parsed 666N/A // into redundant empty blocks in the tree, so verify there are 666N/A // no empty blocks in the -printsource output