langtools/test/tools/javac/T6794959.java
author jjg
Mon, 11 Jan 2010 14:05:21 -0800
changeset 4699 e58edf3542b3
parent 1866 734286a0cc38
child 5520 86e4b9a9da40
permissions -rw-r--r--
6326754: Compiler will fail to handle -Xmaxerrs with -ve numbers Reviewed-by: ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1866
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     1
/*
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     2
 * Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     4
 *
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     8
 *
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    13
 * accompanied this code).
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    14
 *
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    18
 *
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    21
 * have any questions.
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    22
 */
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    23
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    24
/*
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    25
 * @test
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    26
 * @bug 6794959
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    27
 * @summary add new switch -XDexpectKeys=key,key,...
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    28
 * @compile T6794959.java
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    29
 * @compile/fail -XDfailcomplete=java.lang.String T6794959.java
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    30
 * @compile -XDfailcomplete=java.lang.String -XDexpectKeys=compiler.err.cant.resolve.location T6794959.java
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    31
 * @compile/fail -XDexpectKeys=compiler.err.cant.resolve.location T6794959.java
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    32
 */
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    33
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    34
class T6794959 {
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    35
    String s;
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    36
}