mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix bug in annotation support
This commit is contained in:
parent
0b7e78d9f9
commit
afac931c62
|
@ -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()]));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user