changeset 2849:3a3427ab11fb

Make test case easier to debug by using two different type annotations.
author wmdietl
date Sun, 15 Sep 2013 00:23:06 -0700
parents 5499e8a522eb
children 6f595e036db7
files test/tools/javac/annotations/typeAnnotations/failures/TypeVariableCycleTest.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/annotations/typeAnnotations/failures/TypeVariableCycleTest.java	Mon Sep 09 17:42:24 2013 -0700
+++ b/test/tools/javac/annotations/typeAnnotations/failures/TypeVariableCycleTest.java	Sun Sep 15 00:23:06 2013 -0700
@@ -35,10 +35,12 @@
 
 class TypeVariableCycleTest<CTV> {
     <MTV extends  @TA CTV> MTV cast(CTV p) {
-        return (@TA MTV) p;
+        return (@TB MTV) p;
     }
 }
 
-@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@Target(ElementType.TYPE_USE)
 @interface TA {}
 
+@Target(ElementType.TYPE_USE)
+@interface TB {}
\ No newline at end of file