8173412: @Test in java/lang/annotation and java/lang/reflect/Proxy tests not run
Reviewed-by: redestad
This commit is contained in:
parent
030a779128
commit
b1af5af0c8
@ -43,7 +43,7 @@ import static org.testng.Assert.*;
|
||||
public class AnnotationWithLambda {
|
||||
|
||||
@Test
|
||||
void testAnnotationWithLambda() {
|
||||
public void testAnnotationWithLambda() {
|
||||
Method[] methods = AnnotationWithLambda.MethodsWithAnnotations.class.getDeclaredMethods();
|
||||
for (Method method : methods) {
|
||||
assertTrue((method.isAnnotationPresent(LambdaWithParameter.class)) &&
|
||||
|
@ -46,7 +46,7 @@ public class ProxyForMethodHandle {
|
||||
* to a dynamic module
|
||||
*/
|
||||
@Test
|
||||
static void testRunnableMethodHandle() throws Exception {
|
||||
public static void testRunnableMethodHandle() throws Exception {
|
||||
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
||||
MethodType mt = MethodType.methodType(void.class);
|
||||
MethodHandle mh = lookup.findStatic(ProxyForMethodHandle.class, "runForRunnable", mt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user