204 sym.getKind() == ElementKind.LOCAL_VARIABLE || |
204 sym.getKind() == ElementKind.LOCAL_VARIABLE || |
205 sym.getKind() == ElementKind.RESOURCE_VARIABLE || |
205 sym.getKind() == ElementKind.RESOURCE_VARIABLE || |
206 sym.getKind() == ElementKind.EXCEPTION_PARAMETER) { |
206 sym.getKind() == ElementKind.EXCEPTION_PARAMETER) { |
207 // Make sure all type annotations from the symbol are also |
207 // Make sure all type annotations from the symbol are also |
208 // on the owner. |
208 // on the owner. |
209 sym.owner.annotations.appendUniqueTypes(sym.getTypeAnnotationMirrors()); |
209 sym.owner.annotations.appendUniqueTypes(sym.getRawTypeAttributes()); |
210 } |
210 } |
211 } |
211 } |
212 |
212 |
213 // This method has a similar purpose as |
213 // This method has a similar purpose as |
214 // {@link com.sun.tools.javac.parser.JavacParser.insertAnnotationsToMostInner(JCExpression, List<JCTypeAnnotation>, boolean)} |
214 // {@link com.sun.tools.javac.parser.JavacParser.insertAnnotationsToMostInner(JCExpression, List<JCTypeAnnotation>, boolean)} |