Procházet zdrojové kódy

Allow Already converted classes from dependencies to be used, even if in another package

kindlich před 5 roky
rodič
revize
5e9d773084
No known key found for this signature in database

+ 1
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java Zobrazit soubor

@@ -410,7 +410,7 @@ public class JavaNativeModule {
410 410
 	
411 411
 	private boolean shouldLoadType(Type type) {
412 412
 		if (type instanceof Class)
413
-			return shouldLoadClass((Class<?>)type);
413
+			return definitionByClass.containsKey(type) || shouldLoadClass((Class<?>)type);
414 414
 		if (type instanceof ParameterizedType)
415 415
 			return shouldLoadType(((ParameterizedType)type).getRawType());
416 416
 		

Loading…
Zrušit
Uložit