35 Commits

Author SHA1 Message Date
Jan Lahoda
8f1ea6b9cd Attempting to use the number of 'base checks' as the limit, instead of wall-clock time. 2026-01-23 17:18:22 +01:00
Jan Lahoda
3e4af725f8 Merge branch 'master' into JDK-8367530 2025-11-18 16:16:45 +01:00
Jan Lahoda
2e68b79a39 8364991: Incorrect not-exhaustive error
Reviewed-by: vromero
2025-11-18 13:55:42 +00:00
Jan Lahoda
b7c3334948 Merge branch 'JDK-8364991' into JDK-8367530 2025-11-03 16:06:27 +01:00
Jan Lahoda
e6a3f0dabe Merge branch 'master' into JDK-8364991 2025-10-30 12:29:16 +01:00
Jan Lahoda
87a4772198 8366968: Exhaustive switch expression rejected by for not covering all possible values
Reviewed-by: abimpoudis
2025-10-30 07:08:18 +00:00
Jan Lahoda
dad7c56b7d Merge branch 'JDK-8364991-2' into JDK-8367530-2 2025-10-17 15:09:18 +02:00
Jan Lahoda
026dc4c813 Adding tests with generic records. 2025-10-13 13:56:09 +02:00
Jan Lahoda
ce838030db Enabling disabled test. 2025-09-25 17:32:51 +02:00
Jan Lahoda
d54e53d5f9 Merge branch 'JDK-8367499' into JDK-8367530 2025-09-12 12:01:26 +02:00
Jan Lahoda
bed37c4f10 Adding test. 2025-09-12 09:12:37 +02:00
Jan Lahoda
7320a5a102 Merge branch 'JDK-8364991' into exhaustiveness-errors 2025-09-11 16:51:19 +02:00
Jan Lahoda
8735a3d7c0 Adjusting to spec. 2025-09-11 16:41:34 +02:00
Jan Lahoda
2f569e32f6 Merge branch 'JDK-8364991' into exhaustiveness-errors 2025-08-07 19:14:48 +02:00
Jan Lahoda
e4f655d70f Improving test debuggability. 2025-08-07 19:13:38 +02:00
Jan Lahoda
36e337fab3 Merge branch 'JDK-8364991' into exhaustiveness-errors 2025-08-07 18:48:37 +02:00
Jan Lahoda
2cfbc715c0 8364991: Incorrect not-exhaustive error 2025-08-07 18:27:35 +02:00
Jan Lahoda
3d6728cec9 A attempt to create more user-friendly errors for switch exaustiveness. 2025-08-04 17:42:42 +02:00
Jan Lahoda
1f09467230 8327368: javac crash when computing exhaustiveness checks
Reviewed-by: vromero
2024-06-05 05:45:59 +00:00
Jan Lahoda
32ee252c45 8333169: javac NullPointerException record.type
Reviewed-by: vromero
2024-05-31 13:14:44 +00:00
Jan Lahoda
cb809f8e04 8325215: Incorrect not exhaustive switch error
Reviewed-by: vromero
2024-02-23 08:56:14 +00:00
Jan Lahoda
a4412166ec 8311815: Incorrect exhaustivity computation
Reviewed-by: vromero
2023-07-17 08:19:51 +00:00
Jan Lahoda
bbb7ce5137 8311038: Incorrect exhaustivity computation
Reviewed-by: vromero
2023-07-14 08:21:48 +00:00
Jan Lahoda
eaa80ad08c 8300543: Compiler Implementation for Pattern Matching for switch
8300545: Compiler Implementation for Record Patterns

Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: vromero, mcimadamore
2023-05-22 04:24:06 +00:00
Jan Lahoda
756dd5bb0d 8294942: Compiler implementation for Record Patterns (Second Preview)
8294945: Compiler implementation for Pattern Matching for switch (Fourth Preview)

Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore, vromero
2022-12-01 08:02:40 +00:00
Jan Lahoda
7bc9692a51 8294670: Enhanced switch statements have an implicit default which does not complete normally
Reviewed-by: vromero
2022-10-20 15:21:26 +00:00
Jan Lahoda
e9bddc18ab 8262889: Compiler implementation for Record Patterns
Co-authored-by: Brian Goetz <briangoetz@openjdk.org>
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: mcimadamore, vromero
2022-05-25 11:56:24 +00:00
Aggelos Biboudis
fd36f3730e 8286797: Guards of constant value false are not permitted
Reviewed-by: vromero
2022-05-19 16:11:24 +00:00
Jan Lahoda
0155e4b76b 8282274: Compiler implementation for Pattern Matching for switch (Third Preview)
Co-authored-by: Brian Goetz <briangoetz@openjdk.org>
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: mcimadamore, vromero, abimpoudis
2022-05-16 07:49:26 +00:00
Jan Lahoda
4ff5824f5b 8281100: Spurious "variable might not have been initialized" with sealed class switch
Reviewed-by: vromero
2022-02-11 12:11:29 +00:00
Jan Lahoda
ab781874b2 8277105: Inconsistent handling of missing permitted subclasses
Reviewed-by: vromero
2021-12-06 15:43:42 +00:00
Jan Lahoda
d085c2b8a7 8273328: Compiler implementation for Pattern Matching for switch (Second Preview)
Reviewed-by: vromero, mcimadamore
2021-11-24 10:07:49 +00:00
Jan Lahoda
292d7bb1d5 8274363: Transitively sealed classes not considered exhaustive in switches
Reviewed-by: vromero
2021-10-01 08:54:18 +00:00
Jan Lahoda
4eb321298a 8268871: Adjust javac to updated exhaustiveness specification
Reviewed-by: vromero
2021-06-25 09:52:06 +00:00
Jan Lahoda
908aca29ca 8262891: Compiler implementation for Pattern Matching for switch (Preview)
Co-authored-by: Brian Goetz <briangoetz@openjdk.org>
Co-authored-by: Mandy Chung <mchung@openjdk.org>
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: mcimadamore, forax, godin, psandoz, mchung
2021-06-07 07:01:30 +00:00