|
Java example source code file (AnnotationVersion.java)
The AnnotationVersion.java Java example source code/* * @test /nodynamiccopyright/ * @bug 6843077 8006775 * @summary test that only Java 8 allows type annotations * @author Mahmood Ali * @compile AnnotationVersion.java * @compile/fail/ref=AnnotationVersion.out -XDrawDiagnostics -Xlint:-options -source 1.6 AnnotationVersion.java * @compile/fail/ref=AnnotationVersion7.out -XDrawDiagnostics -Xlint:-options -source 1.7 AnnotationVersion.java */ import java.lang.annotation.*; class myNumber<T extends @A Number> { } @Target(ElementType.TYPE_USE) @interface A { } Other Java examples (source code examples)Here is a short list of links related to this Java AnnotationVersion.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.