< prev index next >
test/tools/javac/processing/model/element/repeatingAnnotations/UnofficialContainerBasicTest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,31 ****
* questions.
*/
/*
* @test
! * @bug 8004822
* @author mnunez
* @summary Language model api test basics for repeating annotations
* @library /tools/javac/lib
* @library supportingAnnotations
* @modules java.compiler
--- 21,31 ----
* questions.
*/
/*
* @test
! * @bug 8004822 8163113
* @author mnunez
* @summary Language model api test basics for repeating annotations
* @library /tools/javac/lib
* @library supportingAnnotations
* @modules java.compiler
*** 48,59 ****
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer(
value = UnofficialContainer.class,
! getAnnotation = "@UnofficialContainer(value=[@Foo(value=1), @Foo(value=2)])",
! getAnnotationsByType = {"@UnofficialContainer(value=[@Foo(value=1), @Foo(value=2)])"})
@UnofficialContainer(value = {@Foo(value = 1), @Foo(value = 2)})
class UnofficialContainerBasicTest {
@ExpectedBase(
value = Foo.class,
--- 48,59 ----
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer(
value = UnofficialContainer.class,
! getAnnotation = "@UnofficialContainer(value={@Foo(value=1), @Foo(value=2)})",
! getAnnotationsByType = {"@UnofficialContainer(value={@Foo(value=1), @Foo(value=2)})"})
@UnofficialContainer(value = {@Foo(value = 1), @Foo(value = 2)})
class UnofficialContainerBasicTest {
@ExpectedBase(
value = Foo.class,
*** 69,80 ****
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer(
value = UnofficialContainer.class,
! getAnnotation = "@UnofficialContainer(value=[@Foo(value=1), @Foo(value=2)])",
! getAnnotationsByType = {"@UnofficialContainer(value=[@Foo(value=1), @Foo(value=2)])"})
@UnofficialContainer(value = {@Foo(value = 1), @Foo(value = 2)})
int testField = 0;
@ExpectedBase(
value = Foo.class,
--- 69,80 ----
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer(
value = UnofficialContainer.class,
! getAnnotation = "@UnofficialContainer(value={@Foo(value=1), @Foo(value=2)})",
! getAnnotationsByType = {"@UnofficialContainer(value={@Foo(value=1), @Foo(value=2)})"})
@UnofficialContainer(value = {@Foo(value = 1), @Foo(value = 2)})
int testField = 0;
@ExpectedBase(
value = Foo.class,
*** 90,99 ****
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer(
value = UnofficialContainer.class,
! getAnnotation = "@UnofficialContainer(value=[@Foo(value=1), @Foo(value=2)])",
! getAnnotationsByType = {"@UnofficialContainer(value=[@Foo(value=1), @Foo(value=2)])"})
@UnofficialContainer(value = {@Foo(value = 1), @Foo(value = 2)})
void testMethod() {}
}
--- 90,99 ----
"ExpectedBase",
"ExpectedContainer"
})
@ExpectedContainer(
value = UnofficialContainer.class,
! getAnnotation = "@UnofficialContainer(value={@Foo(value=1), @Foo(value=2)})",
! getAnnotationsByType = {"@UnofficialContainer(value={@Foo(value=1), @Foo(value=2)})"})
@UnofficialContainer(value = {@Foo(value = 1), @Foo(value = 2)})
void testMethod() {}
}
< prev index next >