langtools/test/tools/javac/processing/errors/TestOptionSyntaxErrors.java
changeset 10202 f32c7f2c2219
parent 6720 f16f91662ad8
child 14963 974d4423c999
equal deleted inserted replaced
10201:52da97a48f81 10202:f32c7f2c2219
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    25  * @test
    25  * @test
    26  * @bug 6406212
    26  * @bug 6406212
    27  * @summary Test that annotation processor options with illegal syntax are rejected
    27  * @summary Test that annotation processor options with illegal syntax are rejected
    28  * @author  Joseph D. Darcy
    28  * @author  Joseph D. Darcy
    29  * @library ../../lib
    29  * @library ../../lib
    30  * @build JavacTestingAbstractProcessor
    30  * @build JavacTestingAbstractProcessor CompileFail
    31  * @compile TestOptionSyntaxErrors.java
    31  * @compile TestOptionSyntaxErrors.java
    32  * @compile/fail -A TestOptionSyntaxErrors.java
    32  * @run main CompileFail CMDERR -A TestOptionSyntaxErrors.java
    33  * @compile/fail -A8adOption TestOptionSyntaxErrors.java
    33  * @run main CompileFail CMDERR -A8adOption TestOptionSyntaxErrors.java
    34  * @compile/fail -A8adOption=1worseOption TestOptionSyntaxErrors.java
    34  * @run main CompileFail CMDERR -A8adOption=1worseOption TestOptionSyntaxErrors.java
    35  * @compile/fail -processor TestOptionSyntaxErrors -proc:only -A TestOptionSyntaxErrors.java
    35  * @run main CompileFail CMDERR -processor TestOptionSyntaxErrors -proc:only -A TestOptionSyntaxErrors.java
    36  * @compile/fail -processor TestOptionSyntaxErrors -proc:only -A8adOption TestOptionSyntaxErrors.java
    36  * @run main CompileFail CMDERR -processor TestOptionSyntaxErrors -proc:only -A8adOption TestOptionSyntaxErrors.java
    37  * @compile/fail -processor TestOptionSyntaxErrors -proc:only -A8adOption=1worseOption TestOptionSyntaxErrors.java
    37  * @run main CompileFail CMDERR -processor TestOptionSyntaxErrors -proc:only -A8adOption=1worseOption TestOptionSyntaxErrors.java
    38  */
    38  */
    39 
    39 
    40 import java.util.Set;
    40 import java.util.Set;
    41 import javax.annotation.processing.*;
    41 import javax.annotation.processing.*;
    42 import javax.lang.model.SourceVersion;
    42 import javax.lang.model.SourceVersion;