Jan Lahoda
22a6b59102
8298727: Trees.getPath may crash for unnamed package
...
Reviewed-by: vromero
2022-12-15 11:33:56 +00:00
Jesper Wilhelmsson
715bf70459
Merge
2022-12-09 22:00:12 +00:00
Jan Lahoda
52fffdd2c8
8298463: tools/javac/modules/EdgeCases.java fails on Windows after JDK-8297988
...
Reviewed-by: jjg
2022-12-09 16:41:26 +00:00
Jan Lahoda
133ad8e173
8297988: NPE in JavacTypes.getOverriddenMethods from doclint
...
Reviewed-by: vromero, jjg
2022-12-09 11:11:46 +00:00
Joe Darcy
175e3d3ff3
8296149: Start of release updates for JDK 21
...
8296150: Add SourceVersion.RELEASE_21
8296151: Add source 21 and target 21 to javac
Reviewed-by: dholmes, iris, erikj, vromero, jlahoda
2022-12-08 16:04:00 +00:00
Jan Lahoda
cf63f2e3ea
8298184: Incorrect record component type in record patterns
...
Reviewed-by: vromero
2022-12-07 12:03:50 +00:00
Aggelos Biboudis
1e468320dc
8297602: Compiler crash with type annotation and generic record during pattern matching
...
Reviewed-by: jlahoda
2022-12-06 13:00:10 +00:00
Srikanth Adayapalam
ee9ba74564
8295184: Printing messages with a RecordComponentElement does not include position
...
Reviewed-by: vromero
2022-12-06 04:23:40 +00:00
Jan Lahoda
2300ed458d
8291769: Translation of switch with record patterns could be improved
...
Reviewed-by: vromero
2022-12-05 12:04:23 +00:00
Jan Lahoda
777fb52ef5
8297974: ClassCastException in com.sun.tools.javac.comp.AttrRecover.doRecovery
...
Reviewed-by: vromero
2022-12-05 09:33:42 +00:00
Aggelos Biboudis
2cb64a7557
8294943: Implement record patterns in enhanced for
...
8296802: Parse errors when deconstructing a record using the enhanced for loop of JEP 432
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore, vromero
2022-12-01 12:40:09 +00:00
Jan Lahoda
b60cce6f3b
8297118: Change IncompatibleClassChangeError to MatchException for exhaustive switch statements and switch expressions
...
Reviewed-by: vromero
2022-12-01 10:51:57 +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
b52611bc36
8295401: Error recovery in module-info.java could be improved
...
Reviewed-by: vromero
2022-11-30 09:49:51 +00:00
Jan Lahoda
9e80cf9c37
8296390: Incremental build failed with a NPE
...
Reviewed-by: vromero
2022-11-30 09:47:48 +00:00
Jaikiran Pai
e10778acce
8297695: Fix typos in test/langtools files
...
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: prappo, jjg, iris
2022-11-30 00:42:40 +00:00
Bo Zhang
33587ffd35
8292625: jshell crash on "var a = a"
...
Reviewed-by: jlaskey, jlahoda
2022-11-29 13:57:56 +00:00
Aggelos Biboudis
6c05771b9b
8295447: NullPointerException with invalid pattern matching construct in constructor call
...
Reviewed-by: vromero
2022-11-26 15:53:00 +00:00
Srikanth Adayapalam
544e317225
8059632: Method reference compilation uses incorrect qualifying type
...
Reviewed-by: mcimadamore
2022-11-21 03:02:29 +00:00
Magnus Ihse Bursie
4527dc67be
8297041: Remove the last remnants of sjavac
...
Reviewed-by: cstein, erikj, jjg
2022-11-17 09:20:22 +00:00
Joe Darcy
e2269fd2ca
8296968: Update langtools tests to use @enablePreview
...
Reviewed-by: sundar, jjg
2022-11-17 00:49:53 +00:00
Vicente Romero
3eb789af74
8296171: Compiler incorrectly rejects code with variadic method references
...
Reviewed-by: mcimadamore
2022-11-14 18:31:26 +00:00
Vicente Romero
60db5f2ba2
8294020: improve errors for record declarations
...
Reviewed-by: jlahoda
2022-11-07 20:16:04 +00:00
Jonathan Gibbons
f8b2574ebc
8296137: diags-examples.xml is broken
...
Reviewed-by: iris, vromero, ihse
2022-11-07 15:58:42 +00:00
Joe Darcy
97c5a64d5c
8296287: Improve documentation for Types.directSupertypes()
...
Reviewed-by: jlahoda, prappo
2022-11-04 16:22:09 +00:00
Hannes Wallnöfer
5622b09565
8200337: Generalize see and link tags for user-defined anchors
...
Reviewed-by: jjg
2022-11-04 14:57:43 +00:00
Vicente Romero
7a85441a85
8232933: Javac inferred type does not conform to equality constraint
...
Reviewed-by: mcimadamore
2022-11-03 12:08:23 +00:00
Archie L. Cobbs
b8ad6cd98a
8294461: wrong effectively final determination by javac
...
Reviewed-by: vromero
2022-10-27 15:58:46 +00:00
Srikanth Adayapalam
4d9a1cd26f
8292159: TYPE_USE annotations on generic type arguments of record components discarded
...
Reviewed-by: vromero
2022-10-27 04:56:22 +00:00
Vicente Romero
6707bfbc15
8029633: Raw inner class constructor ref should not perform diamond inference
...
Reviewed-by: jlahoda
2022-10-20 15:43:10 +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
Vicente Romero
95dd376ba2
8291914: generated constructors are considered compact when they shouldn't
...
Reviewed-by: darcy, jlahoda
2022-10-20 14:58:56 +00:00
Archie L. Cobbs
9b971626f7
7039014: Confusing error message for method conflict
...
Reviewed-by: vromero
2022-10-20 13:58:09 +00:00
Jan Lahoda
78dc497786
8294550: Sealed check for casts isn't applied to array components
...
Reviewed-by: vromero
2022-10-20 13:01:12 +00:00
Magnus Ihse Bursie
d5a1521fde
8295470: Update openjdk.java.net => openjdk.org URLs in test code
...
Reviewed-by: michaelm, prr, darcy
2022-10-20 10:33:18 +00:00
Jan Lahoda
71aa821091
8295176: some langtools test pollutes source tree
...
Reviewed-by: sadayapalam, darcy, vromero
2022-10-18 07:45:23 +00:00
Srikanth Adayapalam
cf07eaeb92
8295020: javac emits incorrect code for for-each on an intersection type.
...
Reviewed-by: mcimadamore
2022-10-17 07:40:19 +00:00
Archie L. Cobbs
786ce1c27b
8295024: Cyclic constructor error is non-deterministic and inconsistent
...
Reviewed-by: vromero
2022-10-14 13:52:50 +00:00
Srikanth Adayapalam
cf84c8eaf2
8292975: javac produces code that crashes with LambdaConversionException
...
8269983: BootstrapMethodError with method reference and intersection type
Reviewed-by: dlsmith, vromero
2022-10-07 04:20:40 +00:00
Jonathan Gibbons
090cdfc7a2
8294726: Update URLs in minefield tests
...
Reviewed-by: darcy, iris
2022-10-03 20:20:53 +00:00
Jonathan Gibbons
e137f9f2f0
8293877: Rewrite MineField test
...
Reviewed-by: vromero, martin, darcy, jlahoda
2022-10-03 17:08:37 +00:00
Jonathan Gibbons
b88ee1ee22
6251738: Want a top-level summary page that itemizes all spec documents referenced from javadocs (OEM spec)
...
Reviewed-by: hannesw
2022-09-26 21:28:39 +00:00
Jan Lahoda
0be2b2c2f1
8292756: java.lang.AssertionError at at jdk.compiler/com.sun.tools.javac.code.Scope$ScopeImpl.leave(Scope.java:386)
...
Reviewed-by: vromero
2022-09-22 14:33:07 +00:00
Jan Lahoda
95ec2eaca3
8293897: Synthetic final modifier is part of the AST for a try-with-resource resource
...
Reviewed-by: sundar
2022-09-21 12:29:40 +00:00
Jan Lahoda
39cd1635bf
8293578: Duplicate ldc generated by javac
...
Reviewed-by: mcimadamore
2022-09-16 11:37:45 +00:00
Adam Sotona
aff5ff14b2
8244681: Add a warning for possibly lossy conversion in compound assignments
...
8293797: Release Note: Javac warns about type casts in compound assignments with possible lossy conversions
Reviewed-by: erikj, prr
2022-09-15 10:10:23 +00:00
Jan Lahoda
2a3879180e
8292755: Non-default method in interface leads to a stack overflow in JShell
...
Reviewed-by: vromero
2022-09-14 08:51:03 +00:00
Aggelos Biboudis
1169a15936
8291657: Javac assertion when compiling a method call with switch expression as argument
...
Reviewed-by: jlahoda
2022-09-14 06:48:01 +00:00
Vicente Romero
46e6e41b9a
8293051: Further refactor javac after removal of -source/-target/--release 7
...
Reviewed-by: darcy, mcimadamore
2022-09-08 14:36:19 +00:00
Jan Lahoda
c0ee30a25a
8293348: A false cyclic inheritance error reported
...
Reviewed-by: vromero
2022-09-08 14:10:06 +00:00