X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Fcodegen%2Ftypes%2FAbstractRuntimeJavaReferenceValidator.java;h=d186584d4e395c6bdf6863cb41ac2124d9154381;hp=d1e2ade645cdc57006866baa787083b21fd84fba;hb=05727365a113b331f125c30118ed95d422481005;hpb=50663fb80e93a3fed06d6527477729ad868f465a diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/AbstractRuntimeJavaReferenceValidator.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/AbstractRuntimeJavaReferenceValidator.java index d1e2ade64..d186584d4 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/AbstractRuntimeJavaReferenceValidator.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/types/AbstractRuntimeJavaReferenceValidator.java @@ -137,7 +137,7 @@ implements JavaReferenceValidator, Method, Field, Constructor> { @Override public boolean isAssignableFrom(TypeDesc to, TypeDesc from) { - if(to == from) + if(to.equals(from) || to.equals(TypeDesc.OBJECT)) return true; Class toClass = findClass(to); Class fromClass = findClass(from);