Skip to content

Commit

Permalink
Fix some of the stdlib functions not compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhebben committed Jun 7, 2024
1 parent 9f602a5 commit f309bb8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ public JavaCompilingClass(JavaCompilingModule module, DefinitionSymbol symbol, J
}

public void addMethod(MethodSymbol method, JavaCompilingMethod compiling) {
addMethod(method, compiling, compiling.compiled);
}

public void addMethod(MethodSymbol method, JavaCompilingMethod compiling, JavaMethod javaMethod) {
methods.put(method, compiling);
module.module.setMethodInfo(method, compiling.compiled);
module.module.setMethodInfo(method, javaMethod);

if (DEBUG_EMPTY && empty)
getContext().logger.trace("Class " + compiled.fullName + " not empty because of " + method.getID());
Expand Down Expand Up @@ -121,7 +125,7 @@ public void addMethod(MethodSymbol method, NativeTag native_) {
if (native_ != null && nativeClass != null) {
final String signature = getContext().getMethodSignature(method.getHeader());
JavaMethod method1 = nativeClass.getMethod(native_.value);
addMethod(method, method1.asCompilingMethod(compiled, signature));
addMethod(method, method1.asCompilingMethod(compiled, signature), method1);
} else {
final JavaNativeMethod.Kind kind = getKind(method);
final String descriptor;
Expand Down

0 comments on commit f309bb8

Please sign in to comment.