|
Java example source code file (Source.java)
The Source.java Java example source code/* * @test /nodynamiccopyright/ * @bug 6278240 * @summary Ensure AnnotationTypeMismatchException is thrown when appropriate * with reasonable foundType filled. * @library /tools/javac/lib * @build JavacTestingAbstractProcessor Processor * @compile/fail/ref=Source.out -XDrawDiagnostics -processor Processor Source.java */ @Gen(fileName="Generated", content= "class Generated {\n" + " @Check(classValue=String.class,\n" + " intConstValue=false,\n" + " enumValue=\"a\",\n" + " incorrectAnnotationValue=@Deprecated,\n" + " incorrectArrayValue={1, \"a\"},\n" + " incorrectClassValue=get())\n" + " public static Class<?> get() {\n" + " return null;\n" + " }\n" + "}\n") class Source { } Other Java examples (source code examples)Here is a short list of links related to this Java Source.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.