1347 Commits

Author SHA1 Message Date
Jan Lahoda
cfa2efafd4 Merge branch 'master' into JDK-8367530-3 2025-11-25 18:24:30 +01:00
Jan Lahoda
cee029cdab Reflecting review feedback: using multi-line diagnostics; passing PatternDescriptions through the diagnostics to format it at the end. 2025-11-25 15:15:08 +01:00
Jan Lahoda
43af7b5976 8371309: Diagnostic.getEndPosition can throw an NPE with typical broken code
Reviewed-by: vromero
2025-11-24 05:55:48 +00:00
Vicente Romero
de0a1f8f51 8372277: Fix for JDK-8369517 is applied starting from source 24 instead of 26
Reviewed-by: liach
2025-11-20 17:55:06 +00:00
Jan Lahoda
5d3e73b9e5 8371248: Crash in -Xdoclint with invalid @link
Reviewed-by: hannesw, vromero
2025-11-20 06:14:40 +00:00
Jan Lahoda
08fdb6d93e Fixing cases that are based on review feedback. 2025-11-19 17:09:23 +01:00
Aggelos Biboudis
99135d2e05 8359145: Implement JEP 530: Primitive Types in Patterns, instanceof, and switch (Fourth Preview)
Reviewed-by: jlahoda
2025-11-19 08:47:57 +00: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
8af5943719 8370334: javadoc NPE with "import module" statement
Reviewed-by: vromero
2025-11-18 08:13:58 +00:00
Archie Cobbs
bc928c814b 5038439: Warning message for literal shift amounts outside the canonical domain
Reviewed-by: darcy, jlahoda
2025-11-14 23:53:31 +00:00
Jan Lahoda
8c48cf8fc0 Cleanup, reflecting review feedback. 2025-11-13 18:07:08 +01:00
Vicente Romero
8102f436f5 8371480: VerifyError after JDK-8369654
Reviewed-by: mcimadamore
2025-11-13 15:28:08 +00:00
Vicente Romero
e5a272a590 8369517: Compilation mismatch for equivalent lambda and method reference
Reviewed-by: mcimadamore
2025-11-12 14:30:08 +00:00
Jan Lahoda
205a163a90 8340840: jshell ClassFormatError when making inner class static
8368999: jshell crash when existing sealed class is updated to also be abstract

Reviewed-by: mcimadamore, asotona, liach
2025-11-07 09:06:51 +00:00
Archie Cobbs
a5864582da 8155591: Misleading warning when not overriding close method in interface extending AutoCloseable
Reviewed-by: jlahoda
2025-11-06 15:28:01 +00:00
Jan Lahoda
8b536b5428 8369489: Marker annotation on inner class access crashes javac compiler
Reviewed-by: vromero
2025-11-05 05:44:09 +00:00
Vicente Romero
4c6af03f81 8337142: StackOverflowError in Types.containsTypeRecursive with deeply nested type hierarchy
Reviewed-by: mcimadamore
2025-11-04 16:47:33 +00:00
Vicente Romero
9f972008ff 8369654: javac OutOfMemoryError for complex intersection type
Reviewed-by: liach, mcimadamore
2025-11-03 18:32:06 +00:00
Jan Lahoda
b7c3334948 Merge branch 'JDK-8364991' into JDK-8367530 2025-11-03 16:06:27 +01:00
Jan Lahoda
abf4f3da76 8370865: Incorrect parser error for compact source files and multi-variable declarations
Reviewed-by: vromero
2025-11-03 12:02:54 +00:00
Jan Lahoda
15fd52925a 8366196: Crash in AbstractMethodCheck.getMethodCheckFailure
Reviewed-by: liach, mcimadamore
2025-11-03 11:41:30 +00:00
Liam Miller-Cushon
8e3620a344 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations
Reviewed-by: jlahoda
2025-10-31 09:52:02 +00: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
Liam Miller-Cushon
c97d50d793 8369508: Type annotations on anonymous new class creation expressions can't be retrieved
Reviewed-by: vromero
2025-10-29 07:26:00 +00:00
Liam Miller-Cushon
f82cc22bfe 8369428: Include method name in 'does not override or implement' diagnostics
Reviewed-by: vromero, liach
2025-10-28 08:53:43 +00:00
Jan Lahoda
b79bce1f40 Fixing tests 2025-10-20 07:38:00 +02:00
Jan Lahoda
dad7c56b7d Merge branch 'JDK-8364991-2' into JDK-8367530-2 2025-10-17 15:09:18 +02:00
Jan Lahoda
0290ecb021 Merge branch 'JDK-8367499-2' into JDK-8364991 2025-10-17 14:30:23 +02:00
Joe Darcy
70528bd399 8369851: Remove darcy author tags from langtools tests
Reviewed-by: vromero, iris
2025-10-14 21:29:04 +00:00
Jan Lahoda
026dc4c813 Adding tests with generic records. 2025-10-13 13:56:09 +02:00
Jan Lahoda
38089d183f Better visualisation. 2025-10-09 17:35:21 +02:00
Jan Lahoda
78af109a06 Fixing tests. 2025-10-08 15:59:19 +02:00
Archie Cobbs
910bb68e51 8349847: Support configuring individual lint categories as errors
Reviewed-by: vromero
2025-10-07 19:32:08 +00:00
Jan Lahoda
c78f6964eb Cleanup. 2025-10-07 19:01:42 +02:00
Jan Lahoda
3607e9986f 8367279: Test tools/javac/tree/TreePosTest.java timed out
Reviewed-by: asotona
2025-10-01 11:16:44 +00:00
Jan Lahoda
8606d3f840 8365060: Historical data for JDK 8 should include the jdk.net package
Reviewed-by: shade, liach
2025-09-30 11:54:37 +00:00
Jan Lahoda
ce838030db Enabling disabled test. 2025-09-25 17:32:51 +02:00
Christian Stein
682fd7846c 8366678: Use JUnit in test/langtools/tools/javac
Reviewed-by: liach
2025-09-22 06:02:20 +00:00
Jan Lahoda
31d3990ca7 Cleanup, making timeout work. 2025-09-12 12:51:20 +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
74c72e6250 Merge branch 'master' into JDK-8364991 2025-09-11 12:56:31 +02:00
Chen Liang
85996572b6 8365676: javac incorrectly allows calling interface static method via type variable
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: vromero
2025-09-10 21:23:45 +00:00
Jan Lahoda
03c54d4288 8365689: Elements.getFileObjectOf fails with a NullPointerException when an erroneous Element is passed in
Reviewed-by: darcy, vromero
2025-09-08 12:26:58 +00:00
Jan Lahoda
f9dc640ef0 8351260: java.lang.AssertionError: Unexpected type tree: (ERROR) = (ERROR)
Reviewed-by: vromero
2025-09-08 06:33:30 +00:00
Archie Cobbs
1e90af08ab 8359383: Incorrect starting positions for implicitly typed variables
Reviewed-by: vromero
2025-09-05 14:30:40 +00:00