Compare commits

...

2 Commits

Author SHA1 Message Date
ed1be59546 Merge branch 'master' of ssh://gitea.hb.dhbw-stuttgart.de:2222/JavaTX/JavaCompilerCore
All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 2m56s
2025-11-27 15:32:46 +01:00
42fabc115e Fix tests 2025-11-27 15:32:30 +01:00
2 changed files with 1 additions and 2 deletions

View File

@@ -1,6 +1,4 @@
import java.lang.Integer;
import java.lang.Double;
import java.lang.Number;
import java.lang.String;
public record R(String n) {}

View File

@@ -1521,6 +1521,7 @@ public class Codegen {
// For Strings we must use equals, and why not make it work for all types?
generate(state, new TargetLocalVar(cur.type, cur.name));
generate(state, ep.expression());
boxPrimitive(state, ep.expression().type());
state.mv.visitMethodInsn(INVOKESTATIC, "java/util/Objects", "equals", "(Ljava/lang/Object;Ljava/lang/Object;)Z", false);
var cont = new Label();