Fix bug in annotation support

This commit is contained in:
Alexey Andreev 2015-08-01 14:42:40 +03:00
parent 0b7e78d9f9
commit afac931c62

View File

@ -220,7 +220,8 @@ public class AnnotationDependencyListener extends AbstractDependencyListener {
if (value == null) { if (value == null) {
value = methodDecl.getAnnotationDefault(); value = methodDecl.getAnnotationDefault();
} }
params.add(generateAnnotationValue(agent, pe, methodDecl.getResultType(), value)); params.add(generateAnnotationValue(agent, pe, methodDecl.getResultType(), value)
.cast(methodDecl.getResultType()));
} }
return pe.construct(className, params.toArray(new ValueEmitter[params.size()])); return pe.construct(className, params.toArray(new ValueEmitter[params.size()]));