Archie L. Cobbs
8f5bb538ab
8015831: Add lint check for calling overridable methods from a constructor
...
6557145: Warn about calling abstract methods in constructors
Reviewed-by: ihse, vromero, mcimadamore
2023-03-17 22:05:50 +00:00
Archie L. Cobbs
55e6bb6b85
8302685: Some javac unit tests aren't reliably closing open files
...
Reviewed-by: darcy, vromero
2023-02-27 16:21:57 +00:00
Vicente Romero
de80dd9c15
8296010: AssertionError in annotationTargetType
...
Reviewed-by: jjg
2023-02-16 19:06:26 +00:00
Archie L. Cobbs
a58fa6e73e
8302514: Misleading error generated when empty class file encountered
...
Reviewed-by: vromero, jwaters
2023-02-16 14:48:39 +00:00
Archie L. Cobbs
8c01b6e66b
8221580: Confusing diagnostic for assigning a static final field in a constructor
...
Reviewed-by: vromero
2023-02-06 18:22:22 +00:00
Archie L. Cobbs
679e485838
8043251: Bogus javac error: required: no arguments, found: no arguments
...
Reviewed-by: vromero
2023-01-09 18:38:15 +00:00
Archie L. Cobbs
44be5edf5a
8219810: javac throws NullPointerException
...
Reviewed-by: vromero
2023-01-04 17:50:32 +00:00
Archie L. Cobbs
40cb431fee
8298943: Missing escapes for single quote marks in compiler.properties
...
Reviewed-by: jjg
2022-12-19 19:48:13 +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
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
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
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
Archie L. Cobbs
9b971626f7
7039014: Confusing error message for method conflict
...
Reviewed-by: vromero
2022-10-20 13:58:09 +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
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
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
Joe Darcy
2d18dda3f2
8173605: Remove support for source and target 1.7 option in javac
...
Reviewed-by: vromero
2022-09-01 16:43:50 +00:00
Vicente Romero
3ba317167d
8285935: Spurious lint warning for static method accessed through instance qualifier
...
Reviewed-by: jlahoda
2022-08-04 17:57:28 +00:00
Vicente Romero
f3abb82989
8268312: Compilation error with nested generic functional interface
...
Reviewed-by: mcimadamore
2022-07-15 13:06:03 +00:00
Jonathan Gibbons
54b4576f78
8288699: cleanup HTML tree in HtmlDocletWriter.commentTagsToContent
...
Reviewed-by: hannesw
2022-07-08 19:33:03 +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
9473c383c6
8286057: Make javac error on a generic enum friendlier
...
Reviewed-by: jlahoda
2022-05-24 10:31:11 +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
a577656772
8282943: Unused weird key in compiler.properties
...
Reviewed-by: vromero
2022-03-28 14:53:14 +00:00
Angelos Bimpoudis
2b13341500
8036019: Insufficient alternatives listed in some errors produced by the parser
...
Reviewed-by: vromero
2022-01-24 15:09:17 +00:00
Vicente Romero
456bd1ed1c
8211004: javac is complaining about non-denotable types and refusing to generate the class file
...
Reviewed-by: jlahoda
2022-01-06 05:58:17 +00:00
Vicente Romero
ff2ca4f21b
8205187: javac/javadoc should not crash if no java.lang; crash message obsolete
...
Reviewed-by: jjg
2021-12-23 19:12:24 +00:00
Liam Miller-Cushon
d7c283a081
8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression
...
Reviewed-by: jlahoda
2021-12-07 18:44:39 +00:00
Liam Miller-Cushon
ea85e01a4c
8271623: Omit enclosing instance fields from inner classes that don't use it
...
Reviewed-by: vromero, jlahoda
2021-11-23 18:14:47 +00:00
Joe Darcy
6a466fe7ae
8202056: Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields
...
8160675: Issue lint warning for non-serializable non-transient instance fields in serializable type
Reviewed-by: erikj, sspitsyn, jlahoda, vromero, rriggs, smarks
2021-10-21 21:11:01 +00:00
Joe Darcy
2f01a6f8b6
8273157: Add convenience methods to Messager
...
Reviewed-by: jjg
2021-09-01 20:28:05 +00:00
Jesper Wilhelmsson
9def3b068e
Merge
2021-07-01 01:01:34 +00:00
Jan Lahoda
4ee400ae43
8268320: Better error recovery for broken patterns in switch
...
Reviewed-by: vromero
2021-06-30 09:47:22 +00:00
Joel Borggrén-Franck
0b8a0e2b58
8266082: AssertionError in Annotate.fromAnnotations with -Xdoclint
...
Reviewed-by: vromero
2021-06-21 08:39:35 +00:00
Vicente Romero
4f9d6b7d68
8267465: remove superfluous preview related annotations and test options
...
Reviewed-by: jlahoda
2021-06-07 13:57:15 +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
Joe Darcy
0ae4ceb413
8244146: javac changes for JEP 306
...
8266399: Core libs update for JEP 306
Reviewed-by: sadayapalam, bpb, naoto
2021-06-01 21:59:39 +00:00
Vicente Romero
0fa9223f34
8260517: implement Sealed Classes as a standard feature in Java
...
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Reviewed-by: dholmes, mcimadamore, jlahoda
2021-05-20 09:11:08 +00:00
Hannes Wallnöfer
66ab6d86d1
8264181: javadoc tool Incorrect error message about malformed link
...
Reviewed-by: prappo
2021-05-19 17:17:50 +00:00
Jesper Wilhelmsson
51e14f2e2a
Merge
2021-01-14 01:29:47 +00:00
Vicente Romero
ac4cd2e3c9
8231461: static/instance overload leads to 'unexpected static method found in unbound lookup' when resolving method reference
...
Reviewed-by: mcimadamore
2021-01-13 17:27:32 +00:00
Jesper Wilhelmsson
b378f54df3
Merge
2021-01-12 01:08:14 +00:00
Jonathan Gibbons
2cb271e691
8253996: Javac error on jdk16 build 18: invalid flag: -Xdoclint:-missing
...
Reviewed-by: hannesw
2021-01-11 17:35:50 +00:00
Jan Lahoda
235488215b
8250768: javac should be adapted to changes in JEP 12
...
Reviewed-by: mcimadamore, erikj, jjg, ihse
2021-01-11 10:10:47 +00:00
Guoxiong Li
8435f0daf2
8258525: Some existing tests should use /nodynamiccopyright/ instead of the standard header
...
Reviewed-by: jjg
2020-12-30 17:20:54 +00:00
Dan Smith
48d8650ae1
8257845: Integrate JEP 390
...
8254047: [JEP 390] Revise "value-based class" & apply to wrappers
8252181: [JEP 390] Define & apply annotation jdk.internal.ValueBased
8252183: [JEP 390] Add 'lint' warning for @ValueBased classes
8257027: [JEP 390] Diagnose synchronization on @ValueBased classes
8252180: [JEP 390] Deprecate wrapper class constructors for removal
Co-authored-by: Roger Riggs <rriggs@openjdk.org>
Co-authored-by: Srikanth Adayapalam <sadayapalam@openjdk.org>
Co-authored-by: Lois Foltan <lfoltan@openjdk.org>
Reviewed-by: rriggs, hseigel, mchung, darcy
2020-12-08 23:04:01 +00:00
Vicente Romero
6ff18e38b4
8257855: Example SafeVarargsNotApplicableToRecordAccessors breaks test tools/javac/diags/CheckExamples.java
...
Reviewed-by: jjg
2020-12-08 04:07:38 +00:00
Vicente Romero
b4b9828cb0
8254784: javac should reject records with @SafeVarargs applied to varargs record component
...
Reviewed-by: mcimadamore
2020-12-07 16:45:51 +00:00