mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8005092: javadoc should check for synthesized bit on an annotation
Reviewed-by: jjg
This commit is contained in:
parent
1dbfb160ba
commit
d0ff55ec00
28 changed files with 1243 additions and 28 deletions
|
@ -52,6 +52,12 @@ public interface AnnotationDesc {
|
||||||
*/
|
*/
|
||||||
ElementValuePair[] elementValues();
|
ElementValuePair[] elementValues();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check for the synthesized bit on the annotation.
|
||||||
|
*
|
||||||
|
* @return true if the annotation is synthesized.
|
||||||
|
*/
|
||||||
|
boolean isSynthesized();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an association between an annotation type element
|
* Represents an association between an annotation type element
|
||||||
|
|
|
@ -89,6 +89,16 @@ public class HtmlDocletWriter extends HtmlDocWriter {
|
||||||
*/
|
*/
|
||||||
protected boolean printedAnnotationHeading = false;
|
protected boolean printedAnnotationHeading = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To check whether the repeated annotations is documented or not.
|
||||||
|
*/
|
||||||
|
private boolean isAnnotationDocumented = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To check whether the container annotations is documented or not.
|
||||||
|
*/
|
||||||
|
private boolean isContainerDocumented = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor to construct the HtmlStandardWriter object.
|
* Constructor to construct the HtmlStandardWriter object.
|
||||||
*
|
*
|
||||||
|
@ -1793,15 +1803,88 @@ public class HtmlDocletWriter extends HtmlDocWriter {
|
||||||
StringBuilder annotation;
|
StringBuilder annotation;
|
||||||
for (int i = 0; i < descList.length; i++) {
|
for (int i = 0; i < descList.length; i++) {
|
||||||
AnnotationTypeDoc annotationDoc = descList[i].annotationType();
|
AnnotationTypeDoc annotationDoc = descList[i].annotationType();
|
||||||
if (! Util.isDocumentedAnnotation(annotationDoc)){
|
// If an annotation is not documented, do not add it to the list. If
|
||||||
|
// the annotation is of a repeatable type, and if it is not documented
|
||||||
|
// and also if its container annotation is not documented, do not add it
|
||||||
|
// to the list. If an annotation of a repeatable type is not documented
|
||||||
|
// but its container is documented, it will be added to the list.
|
||||||
|
if (! Util.isDocumentedAnnotation(annotationDoc) &&
|
||||||
|
(!isAnnotationDocumented && !isContainerDocumented)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
annotation = new StringBuilder();
|
annotation = new StringBuilder();
|
||||||
|
isAnnotationDocumented = false;
|
||||||
LinkInfoImpl linkInfo = new LinkInfoImpl(configuration,
|
LinkInfoImpl linkInfo = new LinkInfoImpl(configuration,
|
||||||
LinkInfoImpl.CONTEXT_ANNOTATION, annotationDoc);
|
LinkInfoImpl.CONTEXT_ANNOTATION, annotationDoc);
|
||||||
|
AnnotationDesc.ElementValuePair[] pairs = descList[i].elementValues();
|
||||||
|
// If the annotation is synthesized, do not print the container.
|
||||||
|
if (descList[i].isSynthesized()) {
|
||||||
|
for (int j = 0; j < pairs.length; j++) {
|
||||||
|
AnnotationValue annotationValue = pairs[j].value();
|
||||||
|
List<AnnotationValue> annotationTypeValues = new ArrayList<AnnotationValue>();
|
||||||
|
if (annotationValue.value() instanceof AnnotationValue[]) {
|
||||||
|
AnnotationValue[] annotationArray =
|
||||||
|
(AnnotationValue[]) annotationValue.value();
|
||||||
|
annotationTypeValues.addAll(Arrays.asList(annotationArray));
|
||||||
|
} else {
|
||||||
|
annotationTypeValues.add(annotationValue);
|
||||||
|
}
|
||||||
|
String sep = "";
|
||||||
|
for (AnnotationValue av : annotationTypeValues) {
|
||||||
|
annotation.append(sep);
|
||||||
|
annotation.append(annotationValueToString(av));
|
||||||
|
sep = " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (isAnnotationArray(pairs)) {
|
||||||
|
// If the container has 1 or more value defined and if the
|
||||||
|
// repeatable type annotation is not documented, do not print
|
||||||
|
// the container.
|
||||||
|
if (pairs.length == 1 && isAnnotationDocumented) {
|
||||||
|
AnnotationValue[] annotationArray =
|
||||||
|
(AnnotationValue[]) (pairs[0].value()).value();
|
||||||
|
List<AnnotationValue> annotationTypeValues = new ArrayList<AnnotationValue>();
|
||||||
|
annotationTypeValues.addAll(Arrays.asList(annotationArray));
|
||||||
|
String sep = "";
|
||||||
|
for (AnnotationValue av : annotationTypeValues) {
|
||||||
|
annotation.append(sep);
|
||||||
|
annotation.append(annotationValueToString(av));
|
||||||
|
sep = " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// If the container has 1 or more value defined and if the
|
||||||
|
// repeatable type annotation is not documented, print the container.
|
||||||
|
else {
|
||||||
|
addAnnotations(annotationDoc, linkInfo, annotation, pairs,
|
||||||
|
indent, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
addAnnotations(annotationDoc, linkInfo, annotation, pairs,
|
||||||
|
indent, linkBreak);
|
||||||
|
}
|
||||||
|
annotation.append(linkBreak ? DocletConstants.NL : "");
|
||||||
|
results.add(annotation.toString());
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add annotation to the annotation string.
|
||||||
|
*
|
||||||
|
* @param annotationDoc the annotation being documented
|
||||||
|
* @param linkInfo the information about the link
|
||||||
|
* @param annotation the annotation string to which the annotation will be added
|
||||||
|
* @param pairs annotation type element and value pairs
|
||||||
|
* @param indent the number of extra spaces to indent the annotations.
|
||||||
|
* @param linkBreak if true, add new line between each member value
|
||||||
|
*/
|
||||||
|
private void addAnnotations(AnnotationTypeDoc annotationDoc, LinkInfoImpl linkInfo,
|
||||||
|
StringBuilder annotation, AnnotationDesc.ElementValuePair[] pairs,
|
||||||
|
int indent, boolean linkBreak) {
|
||||||
linkInfo.label = "@" + annotationDoc.name();
|
linkInfo.label = "@" + annotationDoc.name();
|
||||||
annotation.append(getLink(linkInfo));
|
annotation.append(getLink(linkInfo));
|
||||||
AnnotationDesc.ElementValuePair[] pairs = descList[i].elementValues();
|
|
||||||
if (pairs.length > 0) {
|
if (pairs.length > 0) {
|
||||||
annotation.append('(');
|
annotation.append('(');
|
||||||
for (int j = 0; j < pairs.length; j++) {
|
for (int j = 0; j < pairs.length; j++) {
|
||||||
|
@ -1823,25 +1906,53 @@ public class HtmlDocletWriter extends HtmlDocWriter {
|
||||||
if (annotationValue.value() instanceof AnnotationValue[]) {
|
if (annotationValue.value() instanceof AnnotationValue[]) {
|
||||||
AnnotationValue[] annotationArray =
|
AnnotationValue[] annotationArray =
|
||||||
(AnnotationValue[]) annotationValue.value();
|
(AnnotationValue[]) annotationValue.value();
|
||||||
for (int k = 0; k < annotationArray.length; k++) {
|
annotationTypeValues.addAll(Arrays.asList(annotationArray));
|
||||||
annotationTypeValues.add(annotationArray[k]);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
annotationTypeValues.add(annotationValue);
|
annotationTypeValues.add(annotationValue);
|
||||||
}
|
}
|
||||||
annotation.append(annotationTypeValues.size() == 1 ? "" : "{");
|
annotation.append(annotationTypeValues.size() == 1 ? "" : "{");
|
||||||
for (Iterator<AnnotationValue> iter = annotationTypeValues.iterator(); iter.hasNext(); ) {
|
String sep = "";
|
||||||
annotation.append(annotationValueToString(iter.next()));
|
for (AnnotationValue av : annotationTypeValues) {
|
||||||
annotation.append(iter.hasNext() ? "," : "");
|
annotation.append(sep);
|
||||||
|
annotation.append(annotationValueToString(av));
|
||||||
|
sep = ",";
|
||||||
}
|
}
|
||||||
annotation.append(annotationTypeValues.size() == 1 ? "" : "}");
|
annotation.append(annotationTypeValues.size() == 1 ? "" : "}");
|
||||||
|
isContainerDocumented = false;
|
||||||
}
|
}
|
||||||
annotation.append(")");
|
annotation.append(")");
|
||||||
}
|
}
|
||||||
annotation.append(linkBreak ? DocletConstants.NL : "");
|
|
||||||
results.add(annotation.toString());
|
|
||||||
}
|
}
|
||||||
return results;
|
|
||||||
|
/**
|
||||||
|
* Check if the annotation contains an array of annotation as a value. This
|
||||||
|
* check is to verify if a repeatable type annotation is present or not.
|
||||||
|
*
|
||||||
|
* @param pairs annotation type element and value pairs
|
||||||
|
*
|
||||||
|
* @return true if the annotation contains an array of annotation as a value.
|
||||||
|
*/
|
||||||
|
private boolean isAnnotationArray(AnnotationDesc.ElementValuePair[] pairs) {
|
||||||
|
AnnotationValue annotationValue;
|
||||||
|
for (int j = 0; j < pairs.length; j++) {
|
||||||
|
annotationValue = pairs[j].value();
|
||||||
|
if (annotationValue.value() instanceof AnnotationValue[]) {
|
||||||
|
AnnotationValue[] annotationArray =
|
||||||
|
(AnnotationValue[]) annotationValue.value();
|
||||||
|
if (annotationArray.length > 1) {
|
||||||
|
if (annotationArray[0].value() instanceof AnnotationDesc) {
|
||||||
|
AnnotationTypeDoc annotationDoc =
|
||||||
|
((AnnotationDesc) annotationArray[0].value()).annotationType();
|
||||||
|
isContainerDocumented = true;
|
||||||
|
if (Util.isDocumentedAnnotation(annotationDoc)) {
|
||||||
|
isAnnotationDocumented = true;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String annotationValueToString(AnnotationValue annotationValue) {
|
private String annotationValueToString(AnnotationValue annotationValue) {
|
||||||
|
|
|
@ -88,6 +88,15 @@ public class AnnotationDescImpl implements AnnotationDesc {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check for the synthesized bit on the annotation.
|
||||||
|
*
|
||||||
|
* @return true if the annotation is synthesized.
|
||||||
|
*/
|
||||||
|
public boolean isSynthesized() {
|
||||||
|
return annotation.isSynthesized();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a string representation of this annotation.
|
* Returns a string representation of this annotation.
|
||||||
* String is of one of the forms:
|
* String is of one of the forms:
|
||||||
|
|
|
@ -0,0 +1,187 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @test
|
||||||
|
* @bug 8005092
|
||||||
|
* @summary Test repeated annotations output.
|
||||||
|
* @author bpatel
|
||||||
|
* @library ../lib/
|
||||||
|
* @build JavadocTester TestRepeatedAnnotations
|
||||||
|
* @run main TestRepeatedAnnotations
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class TestRepeatedAnnotations extends JavadocTester {
|
||||||
|
|
||||||
|
//Test information.
|
||||||
|
private static final String BUG_ID = "8005092";
|
||||||
|
|
||||||
|
//Javadoc arguments.
|
||||||
|
private static final String[] ARGS = new String[] {
|
||||||
|
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "pkg1"
|
||||||
|
};
|
||||||
|
|
||||||
|
//Input for string search tests.
|
||||||
|
private static final String[][] TEST = {
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/ContaineeRegDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeRegDoc</a> " +
|
||||||
|
"<a href=\"../pkg/ContaineeRegDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeRegDoc</a>"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/RegContainerDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContainerDoc</a>" +
|
||||||
|
"(<a href=\"../pkg/RegContainerDoc.html#value()\">value</a>={" +
|
||||||
|
"<a href=\"../pkg/RegContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>," +
|
||||||
|
"<a href=\"../pkg/RegContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/ContainerSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContainerSynthDoc</a>(" +
|
||||||
|
"<a href=\"../pkg/ContainerSynthDoc.html#value()\">value</a>=" +
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>)"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
|
||||||
|
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
|
||||||
|
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "D.html",
|
||||||
|
"<a href=\"../pkg/RegDoc.html\" title=\"annotation in pkg\">@RegDoc</a>" +
|
||||||
|
"(<a href=\"../pkg/RegDoc.html#x()\">x</a>=1)"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "D.html",
|
||||||
|
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" +
|
||||||
|
"(<a href=\"../pkg/RegArryDoc.html#y()\">y</a>=1)"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "D.html",
|
||||||
|
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" +
|
||||||
|
"(<a href=\"../pkg/RegArryDoc.html#y()\">y</a>={1,2})"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "D.html",
|
||||||
|
"<a href=\"../pkg/NonSynthDocContainer.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@NonSynthDocContainer</a>" +
|
||||||
|
"(<a href=\"../pkg/NonSynthDocContainer.html#value()\">value</a>=" +
|
||||||
|
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>)"},
|
||||||
|
|
||||||
|
{BUG_ID + FS + "pkg1" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg1/RegContainerValDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@RegContainerValDoc</a>" +
|
||||||
|
"(<a href=\"../pkg1/RegContainerValDoc.html#value()\">value</a>={" +
|
||||||
|
"<a href=\"../pkg1/RegContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@RegContaineeNotDoc</a>," +
|
||||||
|
"<a href=\"../pkg1/RegContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@RegContaineeNotDoc</a>}," +
|
||||||
|
"<a href=\"../pkg1/RegContainerValDoc.html#y()\">y</a>=3)"},
|
||||||
|
{BUG_ID + FS + "pkg1" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg1/ContainerValDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContainerValDoc</a>" +
|
||||||
|
"(<a href=\"../pkg1/ContainerValDoc.html#value()\">value</a>={" +
|
||||||
|
"<a href=\"../pkg1/ContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>," +
|
||||||
|
"<a href=\"../pkg1/ContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," +
|
||||||
|
"<a href=\"../pkg1/ContainerValDoc.html#x()\">x</a>=1)"}
|
||||||
|
};
|
||||||
|
|
||||||
|
private static final String[][] NEGATED_TEST = {
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/RegContaineeDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContaineeDoc</a> " +
|
||||||
|
"<a href=\"../pkg/RegContaineeDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContaineeDoc</a>"},
|
||||||
|
{BUG_ID + FS + "pkg" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg/RegContainerNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContainerNotDoc</a>" +
|
||||||
|
"(<a href=\"../pkg/RegContainerNotDoc.html#value()\">value</a>={" +
|
||||||
|
"<a href=\"../pkg/RegContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>," +
|
||||||
|
"<a href=\"../pkg/RegContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"},
|
||||||
|
|
||||||
|
{BUG_ID + FS + "pkg1" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a> " +
|
||||||
|
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a>"},
|
||||||
|
{BUG_ID + FS + "pkg1" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg1/RegContainerValNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@RegContainerValNotDoc</a>" +
|
||||||
|
"(<a href=\"../pkg1/RegContainerValNotDoc.html#value()\">value</a>={" +
|
||||||
|
"<a href=\"../pkg1/RegContaineeDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@RegContaineeDoc</a>," +
|
||||||
|
"<a href=\"../pkg1/RegContaineeDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@RegContaineeDoc</a>}," +
|
||||||
|
"<a href=\"../pkg1/RegContainerValNotDoc.html#y()\">y</a>=4)"},
|
||||||
|
{BUG_ID + FS + "pkg1" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg1/ContainerValNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContainerValNotDoc</a>" +
|
||||||
|
"(<a href=\"../pkg1/ContainerValNotDoc.html#value()\">value</a>={" +
|
||||||
|
"<a href=\"../pkg1/ContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>," +
|
||||||
|
"<a href=\"../pkg1/ContaineeNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," +
|
||||||
|
"<a href=\"../pkg1/ContainerValNotDoc.html#x()\">x</a>=2)"},
|
||||||
|
{BUG_ID + FS + "pkg1" + FS + "C.html",
|
||||||
|
"<a href=\"../pkg1/ContainerSynthNotDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContainerSynthNotDoc</a>(" +
|
||||||
|
"<a href=\"../pkg1/ContainerSynthNotDoc.html#value()\">value</a>=" +
|
||||||
|
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
|
||||||
|
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a>)"}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The entry point of the test.
|
||||||
|
* @param args the array of command line arguments.
|
||||||
|
*/
|
||||||
|
public static void main(String[] args) {
|
||||||
|
TestRepeatedAnnotations tester = new TestRepeatedAnnotations();
|
||||||
|
run(tester, ARGS, TEST, NEGATED_TEST);
|
||||||
|
tester.printSummary();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public String getBugId() {
|
||||||
|
return BUG_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public String getBugName() {
|
||||||
|
return getClass().getName();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
@ContainerSynthDoc(value={@ContaineeSynthDoc,@ContaineeSynthDoc})
|
||||||
|
@ContainerRegDoc(value={@ContaineeRegDoc,@ContaineeRegDoc})
|
||||||
|
@RegContainerDoc(value={@RegContaineeNotDoc,@RegContaineeNotDoc})
|
||||||
|
@ContainerRegNotDoc(value={@RegContaineeDoc,@RegContaineeDoc})
|
||||||
|
@RegContainerNotDoc(value={@RegContaineeNotDoc,@RegContaineeNotDoc})
|
||||||
|
@ContaineeSynthDoc @ContaineeSynthDoc @ContaineeSynthDoc
|
||||||
|
public class C {
|
||||||
|
|
||||||
|
@ContainerSynthDoc(value={@ContaineeSynthDoc})
|
||||||
|
public void test1() {}
|
||||||
|
|
||||||
|
@ContaineeSynthDoc @ContaineeSynthDoc
|
||||||
|
public void test2() {}
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation contained by ContainerRegDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface ContaineeRegDoc {
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented synthesized annotation contained by ContainerSynthDoc.
|
||||||
|
* It will be used to annotate Class C and a method in the class using a synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
@ContainedBy(ContainerSynthDoc.class)
|
||||||
|
public @interface ContaineeSynthDoc {
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation container for ContaineeRegDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface ContainerRegDoc {
|
||||||
|
|
||||||
|
ContaineeRegDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation container for RegContaineeDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface ContainerRegNotDoc {
|
||||||
|
|
||||||
|
RegContaineeDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented synthesized annotation container for ContaineeSynthDoc.
|
||||||
|
* It will be used to annotate Class C and a method in the class using a synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
@ContainerFor(ContaineeSynthDoc.class)
|
||||||
|
public @interface ContainerSynthDoc {
|
||||||
|
|
||||||
|
ContaineeSynthDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
@RegDoc(x=1)
|
||||||
|
public class D {
|
||||||
|
|
||||||
|
@RegArryDoc(y={1})
|
||||||
|
public void test1() {}
|
||||||
|
|
||||||
|
@RegArryDoc(y={1,2})
|
||||||
|
public void test2() {}
|
||||||
|
|
||||||
|
@NonSynthDocContainer(value={@RegArryDoc})
|
||||||
|
public void test3() {}
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation.
|
||||||
|
* It will be used to annotate methods in class D.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface NonSynthDocContainer {
|
||||||
|
|
||||||
|
RegArryDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation.
|
||||||
|
* It will be used to annotate methods in Class D.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface RegArryDoc {
|
||||||
|
|
||||||
|
int[] y();
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation contained by ContainerRegNotDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface RegContaineeDoc {
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation contained by RegContainerNotDoc
|
||||||
|
* and RegContainerDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface RegContaineeNotDoc {
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation container for RegContainerDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface RegContainerDoc {
|
||||||
|
|
||||||
|
RegContaineeNotDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation container for RegContaineeNotDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface RegContainerNotDoc {
|
||||||
|
|
||||||
|
RegContaineeNotDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation.
|
||||||
|
* It will be used to annotate Class D.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface RegDoc {
|
||||||
|
|
||||||
|
int x();
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
@ContainerSynthNotDoc(value={@ContaineeSynthDoc,@ContaineeSynthDoc})
|
||||||
|
@RegContainerValDoc(value={@RegContaineeNotDoc,@RegContaineeNotDoc},y=3)
|
||||||
|
@ContainerValDoc(value={@ContaineeNotDoc,@ContaineeNotDoc},x=1)
|
||||||
|
@RegContainerValNotDoc(value={@RegContaineeDoc,@RegContaineeDoc},y=4)
|
||||||
|
@ContainerValNotDoc(value={@ContaineeNotDoc,@ContaineeNotDoc},x=2)
|
||||||
|
public class C {
|
||||||
|
|
||||||
|
@ContainerSynthNotDoc(value={@ContaineeSynthDoc})
|
||||||
|
public void test1() {}
|
||||||
|
|
||||||
|
@ContaineeSynthDoc @ContaineeSynthDoc
|
||||||
|
public void test2() {}
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation contained by ContainerValNotDoc
|
||||||
|
* and ContainerValDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface ContaineeNotDoc {
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented synthesized annotation contained by ContainerSynthNotDoc.
|
||||||
|
* It will be used to annotate Class C and methods in the class using a synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
@ContainedBy(ContainerSynthNotDoc.class)
|
||||||
|
public @interface ContaineeSynthDoc {
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented synthesized annotation container for ContaineeSynthDoc.
|
||||||
|
* It will be used to annotate Class C and methods in the class using a synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@ContainerFor(ContaineeSynthDoc.class)
|
||||||
|
public @interface ContainerSynthNotDoc {
|
||||||
|
|
||||||
|
ContaineeSynthDoc[] value();
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation container for ContaineeNotDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface ContainerValDoc {
|
||||||
|
|
||||||
|
ContaineeNotDoc[] value();
|
||||||
|
|
||||||
|
int x();
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation container for ContaineeNotDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface ContainerValNotDoc {
|
||||||
|
|
||||||
|
ContaineeNotDoc[] value();
|
||||||
|
|
||||||
|
int x();
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation contained by RegContainerValNotDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface RegContaineeDoc {
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation contained by RegContainerValDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface RegContaineeNotDoc {
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a documented annotation container for RegContaineeNotDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
@Documented
|
||||||
|
public @interface RegContainerValDoc {
|
||||||
|
|
||||||
|
RegContaineeNotDoc[] value();
|
||||||
|
|
||||||
|
int y();
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2012, 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.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package pkg1;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a non-documented annotation container for RegContaineeDoc.
|
||||||
|
* It will be used to annotate Class C using a non-synthesized form.
|
||||||
|
*
|
||||||
|
* @author Bhavesh Patel
|
||||||
|
*/
|
||||||
|
public @interface RegContainerValNotDoc {
|
||||||
|
|
||||||
|
RegContaineeDoc[] value();
|
||||||
|
|
||||||
|
int y();
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue