Lines 1024-1029
Link Here
|
1024 |
</compile> |
1024 |
</compile> |
1025 |
</ajc-test> |
1025 |
</ajc-test> |
1026 |
|
1026 |
|
|
|
1027 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper exact annotation type"> |
1028 |
<compile files="ExactAnnotationTypePattern.java" options="-1.5"> |
1029 |
<message kind="warning" line="20" text="field blah"/> |
1030 |
<message kind="warning" line="28" text="does not match because annotation @TypeAnnotation has @Target{ElementType.TYPE} [Xlint:unmatchedTargetKind]"/> |
1031 |
<message kind="warning" line="37" text="does not match because annotation @FieldAnnotation has @Target{ElementType.FIELD} [Xlint:unmatchedTargetKind]"/> |
1032 |
<message kind="warning" line="46" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1033 |
</compile> |
1034 |
</ajc-test> |
1035 |
|
1036 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper annotation type inside OR"> |
1037 |
<compile files="OrTypePattern.java" options="-1.5"> |
1038 |
<message kind="warning" line="26" text="does not match because annotation @FieldAnnotation has @Target{ElementType.FIELD} [Xlint:unmatchedTargetKind]"/> |
1039 |
<message kind="warning" line="31" text="does not match because annotation @TypeAnnotation has @Target{ElementType.TYPE} [Xlint:unmatchedTargetKind]"/> |
1040 |
<message kind="warning" line="31" text="does not match because annotation @FieldAnnotation has @Target{ElementType.FIELD} [Xlint:unmatchedTargetKind]"/> |
1041 |
</compile> |
1042 |
</ajc-test> |
1043 |
|
1044 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper annotation type inside AND"> |
1045 |
<compile files="AndTypePattern.java" options="-1.5"> |
1046 |
<message kind="warning" line="23" text="does not match because annotation @FieldAnnotation has @Target{ElementType.FIELD} [Xlint:unmatchedTargetKind]"/> |
1047 |
</compile> |
1048 |
</ajc-test> |
1049 |
|
1050 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper annotated return type"> |
1051 |
<compile files="AnnotationReturnType.java" options="-1.5"> |
1052 |
<!-- warnings coming from matching pointcuts and corresponding declare warnings --> |
1053 |
<message kind="warning" line="12" text="(@TypeAnnotation *) *(..)"/> |
1054 |
<message kind="warning" line="12" text="(@(TypeAnnotation || MethodAnnotation) *) *(..)"/> |
1055 |
<!-- xlint warnings that were put in as part of fix for pr115252 --> |
1056 |
<message kind="warning" line="32" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1057 |
<message kind="warning" line="37" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1058 |
</compile> |
1059 |
</ajc-test> |
1060 |
|
1061 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper annotated declaring type"> |
1062 |
<compile files="AnnotationDeclaringType.java" options="-1.5"> |
1063 |
<!-- warning coming from matching pointcuts and corresponding declare warnings --> |
1064 |
<message kind="warning" line="13" text="* (@TypeAnnotation *).*(..)"/> |
1065 |
<!-- xlint warning that was put in as part of fix for pr115252 --> |
1066 |
<message kind="warning" line="27" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1067 |
</compile> |
1068 |
</ajc-test> |
1069 |
|
1070 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper annotated parameter type"> |
1071 |
<compile files="AnnotationParameterType.java" options="-1.5"> |
1072 |
<!-- warning coming from matching pointcuts and corresponding declare warnings --> |
1073 |
<message kind="warning" line="12" text="* *(@TypeAnnotation *)"/> |
1074 |
<!-- xlint warning that was put in as part of fix for pr115252 --> |
1075 |
<message kind="warning" line="31" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1076 |
</compile> |
1077 |
</ajc-test> |
1078 |
|
1079 |
<ajc-test dir="bugs150/pr115252" title="xlint message for improper annotated throws pattern"> |
1080 |
<compile files="AnnotationThrowsPattern.java" options="-1.5"> |
1081 |
<!-- warnings coming from matching pointcuts and corresponding declare warnings --> |
1082 |
<message kind="warning" line="12" text="(* *.*(..) throws (@TypeAnnotation *))"/> |
1083 |
<message kind="warning" line="12" text="* *.*(..) throws !(@MethodAnnotation *)"/> |
1084 |
<message kind="warning" line="14" text="(* *.*(..) throws !(@TypeAnnotation *))"/> |
1085 |
<message kind="warning" line="14" text="* *.*(..) throws !(@MethodAnnotation *)"/> |
1086 |
<!-- xlint warnings that were put in as part of fix for pr115252 --> |
1087 |
<message kind="warning" line="40" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1088 |
<message kind="warning" line="46" text="does not match because annotation @MethodAnnotation has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1089 |
</compile> |
1090 |
</ajc-test> |
1091 |
|
1092 |
<ajc-test dir="bugs150/pr115252" title="xlint message for more than one improper annotated parameter type"> |
1093 |
<compile files="MoreThanOneTargetAnnotation.java" options="-1.5"> |
1094 |
<!-- xlint warning that was put in as part of fix for pr115252 --> |
1095 |
<message kind="warning" line="28" text="does not match because annotation @MethodAndFieldAnnotation has @Target{ElementType.FIELD,ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
1096 |
<message kind="warning" line="38" text="does not match because annotation @TypeAndMethodAnnotation has @Target{ElementType.METHOD,ElementType.TYPE} [Xlint:unmatchedTargetKind]"/> |
1097 |
</compile> |
1098 |
</ajc-test> |
1099 |
|
1027 |
<!-- ============================================================================ --> |
1100 |
<!-- ============================================================================ --> |
1028 |
<!-- ============================================================================ --> |
1101 |
<!-- ============================================================================ --> |
1029 |
|
1102 |
|
Lines 2870-2876
Link Here
|
2870 |
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"> |
2943 |
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"> |
2871 |
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/> |
2944 |
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/> |
2872 |
<message kind="error" line="9" text="The annotation @TypeColoring is disallowed for this location"/> |
2945 |
<message kind="error" line="9" text="The annotation @TypeColoring is disallowed for this location"/> |
2873 |
</compile> |
2946 |
<!-- xlint warnings that were put in as part of fix for pr115252 --> |
|
|
2947 |
<message kind="warning" line="13" text="does not match because annotation @MethodColoring has @Target{ElementType.METHOD} [Xlint:unmatchedTargetKind]"/> |
2948 |
<message kind="warning" line="16" text="does not match because annotation @TypeColoring has @Target{ElementType.TYPE} [Xlint:unmatchedTargetKind]"/> |
2949 |
</compile> |
2874 |
</ajc-test> |
2950 |
</ajc-test> |
2875 |
|
2951 |
|
2876 |
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - source weaving"> |
2952 |
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - source weaving"> |