203 // TODO: change how receiver annotations are output! |
203 // TODO: change how receiver annotations are output! |
204 Type recvtype = sym.type.asMethodType().recvtype; |
204 Type recvtype = sym.type.asMethodType().recvtype; |
205 if (recvtype == null) { |
205 if (recvtype == null) { |
206 return new AnnotationDesc[0]; |
206 return new AnnotationDesc[0]; |
207 } |
207 } |
208 if (recvtype.getKind() != TypeKind.ANNOTATED) { |
208 if (!recvtype.isAnnotated()) { |
209 return new AnnotationDesc[0]; |
209 return new AnnotationDesc[0]; |
210 } |
210 } |
211 List<? extends Compound> typeAnnos = ((com.sun.tools.javac.code.Type.AnnotatedType)recvtype).typeAnnotations; |
211 List<? extends Compound> typeAnnos = ((com.sun.tools.javac.code.Type.AnnotatedType)recvtype).typeAnnotations; |
212 AnnotationDesc result[] = new AnnotationDesc[typeAnnos.length()]; |
212 AnnotationDesc result[] = new AnnotationDesc[typeAnnos.length()]; |
213 int i = 0; |
213 int i = 0; |