author | akulyakh |
Thu, 21 May 2015 11:41:04 -0700 | |
changeset 30730 | d3ce7619db2c |
parent 19507 | 323f001d6be1 |
child 36526 | 3b41f1c69604 |
permissions | -rw-r--r-- |
19507
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
1 |
/* |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
3 |
* @bug 8019243 |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
4 |
* @summary AnnotationTypeMismatchException instead of MirroredTypeException |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
5 |
* @library /tools/javac/lib |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
19507
diff
changeset
|
6 |
* @modules jdk.compiler/com.sun.tools.javac.code |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
19507
diff
changeset
|
7 |
* jdk.compiler/com.sun.tools.javac.util |
19507
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
8 |
* @build JavacTestingAbstractProcessor Processor |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
9 |
* @compile/fail/ref=Source.out -XDrawDiagnostics -processor Processor Source.java |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
10 |
*/ |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
11 |
|
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
12 |
@Processor.A(a=some.path.to.SomeUnknownClass$Inner.class) |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
13 |
class Source1{} |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
14 |
|
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
15 |
@Processor.B(a=SomeUnknownClass.class) |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
16 |
class Source2{} |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
17 |
|
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
18 |
@Processor.C(a=SomeUnknownClass.clas) // this is not a class literal |
323f001d6be1
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
jfranck
parents:
diff
changeset
|
19 |
class Source3{} |