mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fixes dependency checking when casting arrays
This commit is contained in:
parent
90a077fc34
commit
e2d872fa20
|
@ -228,6 +228,9 @@ class DependencyGraphBuilder {
|
||||||
if (targetClass != null) {
|
if (targetClass != null) {
|
||||||
valueNode.connect(receiverNode, new DependencyTypeFilter() {
|
valueNode.connect(receiverNode, new DependencyTypeFilter() {
|
||||||
@Override public boolean match(String type) {
|
@Override public boolean match(String type) {
|
||||||
|
if (targetClass.getName().equals("java.lang.Object")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return isAssignableFrom(dependencyChecker.getClassSource(), targetClass, type);
|
return isAssignableFrom(dependencyChecker.getClassSource(), targetClass, type);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user