Skip to content

Commit

Permalink
New test case: iface-with-default-func
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Jan 9, 2025
1 parent 452dcbb commit a39a8d8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This file is a version history of jacotest amendments. Entries appear in versio
| `Date` | `Version` | `Contents` |
| :------------: | :---: | :--- |
|<img width=90/>|<img width=60/>|<img width=600/>|
| 2025-01-09 | 3.5.2 | New test case: iface-with-default-func. |
| 2024-12-30 | 3.5.1 | JACOBIN-634: report fix. |
| 2024-12-29 | 3.4.38 | New test case: crypto-salsa must throw new AssertionError. |
| 2024-12-28 | 3.4.37 | New test case: crypto-salsa. |
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.5.1
v3.5.2
24 changes: 24 additions & 0 deletions tests/iface-with-default-func/main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
public class main {

public static void main(String[] args) {
int result = -1;
var bc = new BronzeClass();
result = bc.returnAnInt();
assert (result == 42);
result = bc.bcReturnAnInt();
assert (result == 42);
}

}

interface BronzeFace {
default int returnAnInt() {
return 42;
}
}

class BronzeClass implements BronzeFace {
int bcReturnAnInt() {
return returnAnInt();
}
}

0 comments on commit a39a8d8

Please sign in to comment.