-
Bug
-
Resolution: Fixed
-
P2
-
None
Many of the tests in typeAnnotations/failures use jdk7 target set and not TYPE_USE.
/*
* @test
* @bug 6843077 8006775
* @summary test type annotation on void generic methods
* @author Mahmood Ali
* @compile/fail VoidGenericMethod.java
*/
class VoidGenericMethod {
public <T> @A void method() { }
}
@interface A { }
For instance, the above from VoidGenericMethod.java says it tests "type annotation on void generic methods" but tests a regular annotation.
I'm guessing these tests were written for a build in which TYPE_USE (and TYPE_PARAMETER) were included in the default set(???).
@Target(TYPE_USE)
@interface A { }
So these don't really test negative uses of type annotations but regular uses.
These should be corrected to use type annotations.
Other older tests should be reviewed for use of jdk7 anotations vs. type annotations.
/*
* @test
* @bug 6843077 8006775
* @summary test type annotation on void generic methods
* @author Mahmood Ali
* @compile/fail VoidGenericMethod.java
*/
class VoidGenericMethod {
public <T> @A void method() { }
}
@interface A { }
For instance, the above from VoidGenericMethod.java says it tests "type annotation on void generic methods" but tests a regular annotation.
I'm guessing these tests were written for a build in which TYPE_USE (and TYPE_PARAMETER) were included in the default set(???).
@Target(TYPE_USE)
@interface A { }
So these don't really test negative uses of type annotations but regular uses.
These should be corrected to use type annotations.
Other older tests should be reviewed for use of jdk7 anotations vs. type annotations.
- relates to
-
JDK-8010225 test in typeAnnotations/failures do not test TYPE_USE annotations
-
- Closed
-
-
JDK-8010226 test in typeAnnotations/failures do not test TYPE_USE annotations
-
- Closed
-