Compare commits

...
2 Commits
Author SHA1 Message Date
dholle 08d57b0da4 Add test case
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 1m21s
2026-11-18 11:45:43 +01:00
dholle cbfda2da47 Merge pull request 'Fix #436' (#469) from fix-436 into master
SonarQube Scan / SonarQube Trigger (push) Successful in 2m26s
Reviewed-on: #469
2026-11-17 10:41:44 +00:00
2 changed files with 20 additions and 0 deletions

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import java.lang.Integer;
import java.lang.Object;
import java.lang.System;
import java.io.PrintStream;
public class Bug466 {
public void p(Object o) { System.out.println(o.toString()); }
public run() {
var a = 3;
p(-(a + 10)); // Java: -13
}
public static main(args) { new Bug466().run(); }
}
+7
View File
@@ -1806,4 +1806,11 @@ public class TestComplete {
var bnot = clazz.getDeclaredMethod("not", Integer.class);
assertEquals(-11, bnot.invoke(instance, 10));
}
@Test
public void testBug466() throws Exception {
var classFiles = generateClassFiles(createClassLoader(), "Bug466.jav");
var clazz = classFiles.get("Bug466");
clazz.getDeclaredMethod("main", List.class).invoke(null, List.of());
}
}