test/tools/javac/Paths/6638501/test1/SayHelloToo.java

Tue, 11 Aug 2009 01:13:42 +0100

author
mcimadamore
date
Tue, 11 Aug 2009 01:13:42 +0100
changeset 360
62fb6cafa93b
parent 14
58039502942e
child 554
9d9f26857129
permissions
-rw-r--r--

6869075: regression: javac crashes when compiling compound string assignment with generics
Summary: javac should not add syntehtic cast to the LHS of an assignment expression
Reviewed-by: jjg

jjg@14 1 /*
jjg@14 2 * Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
jjg@14 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@14 4 *
jjg@14 5 * This code is free software; you can redistribute it and/or modify it
jjg@14 6 * under the terms of the GNU General Public License version 2 only, as
jjg@14 7 * published by the Free Software Foundation.
jjg@14 8 *
jjg@14 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@14 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@14 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@14 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@14 13 * accompanied this code).
jjg@14 14 *
jjg@14 15 * You should have received a copy of the GNU General Public License version
jjg@14 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@14 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@14 18 *
jjg@14 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
jjg@14 20 * CA 95054 USA or visit www.sun.com if you need additional information or
jjg@14 21 * have any questions.
jjg@14 22 */
jjg@14 23
jjg@14 24 import test.HelloImpl;
jjg@14 25
jjg@14 26 public class SayHelloToo extends HelloImpl {
jjg@14 27 public static void main(String... args) {
jjg@14 28 new SayHelloToo().Hello();
jjg@14 29 }
jjg@14 30
jjg@14 31 }

mercurial