Jan Lahoda
26f2a978f6
8290561: Coalesce incubator-module warnings for single-file source-code programs
...
Reviewed-by: mcimadamore
2022-09-06 09:27:48 +00:00
Joe Darcy
3ac91b08cb
8293003: Review running time of Warn5 regression test
...
Reviewed-by: vromero
2022-09-02 02:53:59 +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
Aggelos Biboudis
9444a081cc
8290709: Incorrect dominance error for unconditional pattern vs. null
...
Reviewed-by: jlahoda
2022-09-01 16:09:03 +00:00
Jan Lahoda
0c40128fec
7194212: NPE in Flow.visitIdent
...
Reviewed-by: vromero
2022-08-12 08:12:28 +00:00
Joe Darcy
0657acf534
8289249: Add methods to Elements for record constructors
...
Reviewed-by: vromero
2022-08-05 22:18:59 +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
67f001186b
8260892: Compilation fails: lambda parameter not visible in body when generics involved
...
Reviewed-by: jlahoda
2022-08-03 19:19:34 +00:00
Joe Darcy
cc2861a993
8290901: Reduce use of -source in langtools tests
...
Reviewed-by: jjg
2022-07-29 17:35:22 +00:00
Aggelos Biboudis
64a1a08ff9
8289647: AssertionError during annotation processing of record related tests
...
Reviewed-by: vromero
2022-07-29 16:02:18 +00:00
Aggelos Biboudis
f5a7de8627
8290379: Parse error with parenthesized pattern and guard using an array
...
Reviewed-by: jlahoda
2022-07-19 09:03: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
Jesper Wilhelmsson
c79baaa811
Merge
2022-07-11 16:15:49 +00:00
Aggelos Biboudis
bba6be79e0
8269674: Improve testing of parenthesized patterns
...
Reviewed-by: jlahoda
2022-07-11 11:13:55 +00:00
Jan Lahoda
25f4b04365
8289894: A NullPointerException thrown from guard expression
...
Reviewed-by: vromero
2022-07-11 08:59:32 +00:00
Jonathan Gibbons
54b4576f78
8288699: cleanup HTML tree in HtmlDocletWriter.commentTagsToContent
...
Reviewed-by: hannesw
2022-07-08 19:33:03 +00:00
Vicente Romero
9c86c82091
8282714: synthetic arguments are being added to the constructors of static local classes
...
Reviewed-by: jlahoda
2022-07-08 17:24:27 +00:00
Jesper Wilhelmsson
01b9f95c62
Merge
2022-07-08 02:07:36 +00:00
Jan Lahoda
8dd94a2c14
8289196: Pattern domination not working properly for record patterns
...
Reviewed-by: vromero
2022-07-07 07:54:18 +00:00
Jesper Wilhelmsson
d4b040f42d
Merge
2022-06-27 18:25:53 +00:00
Vicente Romero
53b37fe153
8288130: compiler error with AP and explicit record accessor
...
Reviewed-by: jlahoda
2022-06-24 21:42:23 +00:00
Jan Lahoda
bdf9902f75
8288120: VerifyError with JEP 405 pattern match
...
Reviewed-by: vromero
2022-06-24 08:13:28 +00:00
Jonathan Gibbons
53a0acee06
8286101: Support formatting in @value tag
...
Reviewed-by: prappo
2022-06-13 18:13:21 +00:00
Joe Darcy
edff51e5fd
8284858: Start of release updates for JDK 20
...
8286035: Add source 20 and target 20 to javac
8286034: Add SourceVersion.RELEASE_20
Reviewed-by: dholmes, kcr, iris, erikj, jjg, ihse
2022-06-09 16:16:49 +00:00
Magnus Ihse Bursie
f7791ad0ea
8287895: Some langtools tests fail on msys2
...
Reviewed-by: jjg
2022-06-08 14:04:48 +00:00
Joe Darcy
32dd1eef88
8287967: Update golden test files after JDK-8287886
...
Reviewed-by: dholmes
2022-06-08 01:59:50 +00:00
Jan Lahoda
2f62f15b09
8287808: javac generates illegal class file for pattern matching switch with records
...
Reviewed-by: sundar
2022-06-07 13:41:24 +00:00
Adam Sotona
905bcbe34e
8286571: java source launcher from a minimal jdk image containing jdk.compiler fails with --enable-preview option
...
Reviewed-by: jlahoda
2022-06-07 13:38:56 +00:00
Jan Lahoda
bde7a7ae03
8287236: Reorganize AST related to pattern matching for switch
...
Reviewed-by: mcimadamore
2022-06-07 10:31:09 +00:00
Raffaello Giulietti
72bcf2aa03
4511638: Double.toString(double) sometimes produces incorrect results
...
Reviewed-by: aturbanov, darcy, bpb
2022-06-01 21:53:54 +00:00
Jan Lahoda
171a7cdd5d
8286895: InternalError: Exception during analyze
...
Reviewed-by: vromero
2022-05-31 15:01:38 +00:00
Jan Lahoda
7ef6993576
8276836: Error in javac caused by switch expression without result expressions: Internal error: stack sim error
...
Reviewed-by: vromero
2022-05-31 11:04:50 +00:00
Pavel Rappo
3d6d7b7e73
8287338: tools/javac/api/snippets/TestJavaxToolsSnippets.java failing tier1 on all platforms
...
Reviewed-by: jjg
2022-05-25 19:44:12 +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
Alexey Ivanov
9b7e42c0f0
8284209: Replace remaining usages of 'a the' in source code
...
Reviewed-by: lancea, wetmore, dfuchs, iris, jjg, ihse
2022-05-24 20:08:11 +00:00
Alexey Ivanov
e0d361cea9
8284191: Replace usages of 'a the' in hotspot and java.base
...
Reviewed-by: lancea, wetmore, naoto, iris, kevinw, xuelei
2022-05-24 11:25:13 +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
c0d51d42d9
8282080: Lambda deserialization fails for Object method references on interfaces
...
Reviewed-by: vromero, mcimadamore
2022-05-17 13:48:45 +00:00
Aleksey Shipilev
8c977050aa
8286475: Drop --enable-preview from instanceof pattern matching related tests
...
Reviewed-by: darcy
2022-05-17 08:49:23 +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
e4439ca32a
8284283: javac crashes when several transitive supertypes are missing
...
Reviewed-by: vromero
2022-05-12 13:40:21 +00:00
Vikey Chen
7d545084f4
8283606: Tests may fail with zh locale on MacOS
...
Reviewed-by: iklam, rriggs
2022-05-05 00:06:24 +00:00
Liam Miller-Cushon
4d30a1e8d1
8284220: TypeMirror#toString omits enclosing class names after JDK-8281238
...
Reviewed-by: darcy
2022-05-04 20:25:36 +00:00
Srikanth Adayapalam
1e28fcbc5f
8155701: The compiler fails with an AssertionError: typeSig ERROR
...
Reviewed-by: vromero
2022-04-29 05:04:23 +00:00
Jonathan Gibbons
3312d8c620
8285756: clean up use of bad arguments for @clean
in langtools tests
...
Reviewed-by: darcy
2022-04-27 22:22:28 +00:00
Jan Lahoda
4c22a9bcf9
8282823: javac should constrain more uses of preview APIs
...
Reviewed-by: jlaskey, mcimadamore, vromero
2022-04-25 09:10:44 +00:00
Pavel Rappo
d6b5a63577
8284908: Refine diagnostic positions for DCErroneous
...
Reviewed-by: jjg
2022-04-21 08:57:16 +00:00
Jonathan Gibbons
7920e8ba42
8283714: REDO - Unexpected TypeElement in ANALYZE TaskEvent
...
8284030: Standard Doclet should not attempt to link to primitive types
Reviewed-by: vromero, jlahoda, prappo
2022-04-12 23:33:26 +00:00
Vicente Romero
1bd8975caf
8284361: Updating ASM to 9.3 for JDK 19
...
Reviewed-by: mchung
2022-04-08 17:01:15 +00:00
Naoto Sato
d6b4693c05
8283698: Refactor Locale constructors used in src/test
...
Reviewed-by: iris, joehw
2022-04-08 15:23:25 +00:00
Vicente Romero
36b9baa70d
8282508: Updating ASM to 9.2 for JDK 19
...
Reviewed-by: lancea, egahlin, mchung
2022-04-04 15:05:00 +00:00
Jaikiran Pai
ec0897ab80
8281705: SourceLauncherTest.testSystemProperty isn't being run
...
Reviewed-by: jjg
2022-03-31 01:09:39 +00:00
Jan Lahoda
a577656772
8282943: Unused weird key in compiler.properties
...
Reviewed-by: vromero
2022-03-28 14:53:14 +00:00
Jonathan Gibbons
5ca8b91898
8283713: [BACKOUT] Unexpected TypeElement in ANALYZE TaskEvent
...
Reviewed-by: prr
2022-03-25 23:21:08 +00:00
Jonathan Gibbons
36b36efa12
8283661: Unexpected TypeElement in ANALYZE TaskEvent
...
Reviewed-by: vromero, jlahoda
2022-03-25 21:16:51 +00:00
Magnus Ihse Bursie
f8878cb0cc
8257733: Move module-specific data from make to respective module
...
Reviewed-by: jjg, weijun, naoto, erikj, prr, alanb, mchung
2022-03-21 21:34:09 +00:00
Matteo Baccan
ccad39237a
8282657: Code cleanup: removing double semicolons at the end of lines
...
Reviewed-by: lancea, rriggs, ihse, prr, iris, wetmore, darcy, dholmes
2022-03-07 21:33:40 +00:00
Joe Darcy
732d891f9f
8282411: Add useful predicates to ElementKind
...
Reviewed-by: prappo
2022-03-01 18:48:43 +00:00
Aleksey Shipilev
86723d4892
8281507: Two javac tests have bad jtreg @clean
tags
...
Reviewed-by: darcy
2022-02-28 07:35:19 +00:00
Jonathan Gibbons
99b8ed9dbf
8281217: Source file launch with security manager enabled fails
...
Reviewed-by: sundar
2022-02-23 16:49:28 +00:00
Jan Lahoda
e3365041bd
8280866: SuppressWarnings does not work properly in package-info and module-info
...
Reviewed-by: darcy, vromero
2022-02-18 11:04:11 +00:00
Magnus Ihse Bursie
95f198b2b1
8274980: Improve adhoc build version strings
...
Reviewed-by: shade, erikj
2022-02-14 10:31:42 +00:00
Joe Darcy
6fdfe0458d
8281674: tools/javac/annotations/typeAnnotations/classfile/AnonymousExtendsTest.java fails with AssertionError
...
Reviewed-by: vromero
2022-02-12 01:33:41 +00:00
Joe Darcy
4032fe76dc
8281238: TYPE_USE annotations not printed in correct position in toString output
...
Reviewed-by: vromero
2022-02-11 21:52:16 +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
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
Jan Lahoda
18c9cb0789
8280067: Incorrect code generated for unary - on char operand
...
Reviewed-by: jlaskey, vromero
2022-01-24 13:52:16 +00:00
Jesper Wilhelmsson
4616c13c2f
Merge
2022-01-20 01:18:38 +00:00
Jan Lahoda
be0538d7c8
8278834: Error "Cannot read field "sym" because "this.lvar[od]" is null" when compiling
...
Reviewed-by: vromero
2022-01-19 19:03:02 +00:00
Vicente Romero
9e3f68d8f4
8279290: symbol not found error, implicit lambdas and diamond constructor invocations
...
Reviewed-by: jlahoda
2022-01-18 15:50:22 +00:00
Liam Miller-Cushon
cfee4512f7
8273914: Indy string concat changes order of operations
...
Reviewed-by: vromero, jlahoda
2022-01-11 15:45:15 +00:00
Jesper Wilhelmsson
d9b1bb5860
Merge
2022-01-10 17:06:23 +00:00
Jan Lahoda
8f969a1362
8278930: javac tries to compile a file twice via PackageElement.getEnclosedElements
...
Reviewed-by: vromero
2022-01-10 09:30:55 +00:00
Jan Lahoda
642ab34a60
8278373: JavacTrees.searchMethod finds incorrect match
...
Reviewed-by: vromero, jjg
2022-01-10 08:33:46 +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
4669bcd877
8279244: test accompaning fix for JDK-8205187 is failing in Windows
...
Reviewed-by: dcubed, mikael
2021-12-23 21:26:31 +00:00
Jonathan Gibbons
9df200f749
8278795: Create test library and tests for langtools snippets
...
Reviewed-by: hannesw
2021-12-23 21:15:21 +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
Christian Stein
23fd9f15da
8271079: JavaFileObject#toUri and multi-release jars
...
Reviewed-by: jjg, lancea, alanb
2021-12-13 12:00:47 +00:00
Jan Lahoda
aed3ea2043
8277634: Incorrect method name in invokedynamic
...
Reviewed-by: jlaskey
2021-12-10 09:01:58 +00:00
Joe Darcy
09831e7aa4
8273146: Start of release updates for JDK 19
...
8277511: Add SourceVersion.RELEASE_19
8277513: Add source 19 and target 19 to javac
Reviewed-by: dholmes, alanb, erikj, iris, mikael, ihse
2021-12-09 17:01:59 +00:00
Jan Lahoda
42d9b1baac
8277106: Cannot compile certain sources with --release
...
Reviewed-by: darcy, mcimadamore
2021-12-08 18:50:38 +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
Jan Lahoda
ab781874b2
8277105: Inconsistent handling of missing permitted subclasses
...
Reviewed-by: vromero
2021-12-06 15:43:42 +00:00
Jan Lahoda
194cdf4e28
8277864: Compilation error thrown while doing a boxing conversion on selector expression
...
Reviewed-by: jlaskey, vromero
2021-12-06 08:42:26 +00:00
Srikanth Adayapalam
104aa1f7f9
8268575: Annotations not visible on model elements before they are generated
...
Reviewed-by: mcimadamore
2021-12-06 06:24:56 +00:00
Jan Lahoda
890700320a
8272234: Pass originating elements from Filer to JavaFileManager
...
Reviewed-by: jjg
2021-12-03 07:40:34 +00:00
Tim Prinzing
652b5f8546
8276674: Malformed Javadoc inline tags in JDK source
...
Reviewed-by: jjg, rriggs, prappo, bchristi
2021-12-02 20:47:29 +00:00
Liam Miller-Cushon
4f15be2cd4
8277965: Enclosing instance optimization affects serialization
...
Reviewed-by: darcy
2021-12-02 19:17:09 +00:00
Adam Sotona
8d9cb2efe6
8278078: Cannot reference super before supertype constructor has been called
...
Reviewed-by: mcimadamore
2021-12-02 15:29:26 +00:00
Adam Sotona
951247c8cb
8235876: Misleading warning message in java source-file mode
...
Reviewed-by: vromero
2021-11-24 17:03:53 +00:00
Christian Stein
663e33de13
8272728: javac ignores any -J option in @argfiles silently
...
Reviewed-by: jjg
2021-11-24 16:50:25 +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
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
Vicente Romero
7b67a49f83
8261847: performance of java.lang.Record::toString should be improved
...
Reviewed-by: jlaskey, redestad
2021-11-23 15:23:23 +00:00
Joe Darcy
4ff43010bb
8224922: Access JavaFileObject from Element(s)
...
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: jjg
2021-11-21 20:42:37 +00:00
Jan Lahoda
2f20b0d8da
8273039: JShell crashes when naming variable or method "abstract" or "strictfp"
...
Reviewed-by: vromero
2021-11-19 07:49:58 +00:00
Sergey Bylokhov
29e552c03a
8272358: Some tests may fail when executed with other locales than the US
...
Reviewed-by: aivanov
2021-11-17 22:21:38 +00:00
Jan Lahoda
0c2d00bff7
8275097: Wrong span of the 'default' tag
...
Reviewed-by: vromero
2021-11-08 13:21:40 +00:00
Guoxiong Li
2b02b6f513
8274942: AssertionError at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
...
Reviewed-by: vromero
2021-11-03 01:57:52 +00:00
Joe Darcy
48f3fcab51
8275308: Add valueOf(Runtime.Version) factory to SourceVersion
...
Reviewed-by: jjg
2021-10-28 22:11:03 +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
Vicente Romero
fd10f1996e
8275302: unexpected compiler error: cast, intersection types and sealed
...
Reviewed-by: jlahoda
2021-10-19 16:46:14 +00:00
Jan Lahoda
b870468bdc
8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile
...
Reviewed-by: vromero
2021-10-11 12:38:08 +00:00
Joe Darcy
c391e59ea6
8274244: ReportOnImportedModuleAnnotation.java fails on rerun
...
Reviewed-by: jjg
2021-10-05 17:31:57 +00:00
Jan Lahoda
a5080effc7
8272564: Incorrect attribution of method invocations of Object methods on interfaces
...
Reviewed-by: jlaskey, mcimadamore, vromero
2021-10-05 10:17:24 +00:00
Jonathan Gibbons
0ca094bc5f
8273244: Improve diagnostic output related to ErroneousTree
...
Reviewed-by: prappo
2021-10-04 16:59:30 +00:00
Adam Sotona
139a8334cb
8268869: java in source-file mode suggests javac-only Xlint flags
...
Reviewed-by: jjg
2021-10-04 15:48:09 +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
1887028408
8269113: Javac throws when compiling switch (null)
...
Co-authored-by: Guoxiong Li <gli@openjdk.org>
Reviewed-by: vromero
2021-10-01 08:53:04 +00:00
Jan Lahoda
ba7d550c6e
8270139: jshell InternalError crash for import of @Repeatable followed by unresolved ref
...
Reviewed-by: vromero
2021-09-22 12:52:31 +00:00
Pavel Rappo
0fc47e99d2
8266666: Implementation for snippets
...
Co-authored-by: Jonathan Gibbons <jjg@openjdk.org>
Co-authored-by: Hannes Wallnöfer <hannesw@openjdk.org>
Reviewed-by: jjg
2021-09-21 15:53:35 +00:00
Jan Lahoda
699865f76c
8259039: Passing different version to --release flag than javac version output warning
...
Reviewed-by: jjg
2021-09-20 13:43:14 +00:00
Guoxiong Li
e07ab82ee5
8273408: java.lang.AssertionError: typeSig ERROR on generated class property of record
...
Reviewed-by: vromero
2021-09-17 05:34:25 +00:00
Guoxiong Li
fe89dd3b0d
8271254: javac generates unreachable code when using empty semicolon statement
...
Reviewed-by: vromero
2021-09-14 14:46:21 +00:00
Jan Lahoda
b0d04976bd
8273584: TypeElement.getSuperclass crashes for a record TypeElement when j.l.Record is not available
...
Reviewed-by: vromero
2021-09-13 09:24:06 +00:00
Vicente Romero
dd1209e4ae
8268885: duplicate checkcast when destination type is not first type of intersection type
...
Reviewed-by: jlahoda
2021-09-09 18:36:17 +00:00
Aleksey Shipilev
267c61a16a
8273361: InfoOptsTest is failing in tier1
...
Reviewed-by: jpai, ihse, jlahoda
2021-09-08 16:36:31 +00:00
Vicente Romero
ff4018bc86
8268148: unchecked warnings handle ? and ? extends Object differently
...
Reviewed-by: jlahoda
2021-09-03 15:20:23 +00:00
Vicente Romero
8c37909274
8273234: extended 'for' with expression of type tvar causes the compiler to crash
...
Reviewed-by: jlahoda
2021-09-03 13:11:27 +00:00
Guoxiong Li
d05494f98b
8266239: Some duplicated javac command-line options have repeated effect
...
Reviewed-by: vromero
2021-09-03 09:33:17 +00:00
Jan Lahoda
93eec9a103
8272776: NullPointerException not reported
...
Reviewed-by: vromero
2021-09-03 09:31:54 +00:00
Jan Lahoda
7b023a3f60
8273257: jshell doesn't compile a sealed hierarchy with a sealed interface and a non-sealed leaf
...
Reviewed-by: vromero
2021-09-03 09:30:56 +00:00
Jan Lahoda
f17ee0c5c7
8273263: Incorrect recovery attribution of record component type when j.l.Record is unavailable
...
Reviewed-by: vromero
2021-09-03 09:29:45 +00:00
Joe Darcy
2f01a6f8b6
8273157: Add convenience methods to Messager
...
Reviewed-by: jjg
2021-09-01 20:28:05 +00:00
Vicente Romero
75d987a0dd
8262095: NPE in Flow$FlowAnalyzer.visitApply: Cannot invoke getThrownTypes because tree.meth.type is null
...
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Reviewed-by: jlahoda
2021-08-31 15:40:17 +00:00
Guoxiong Li
a9188f237e
8268894: forged ASTs can provoke an AIOOBE at com.sun.tools.javac.jvm.ClassWriter::writePosition
...
Reviewed-by: vromero
2021-08-29 07:26:08 +00:00
Vicente Romero
14623cde3a
8270835: regression after JDK-8261006
...
Reviewed-by: jlahoda
2021-08-17 20:47:36 +00:00
Jonathan Gibbons
ae45592d33
8272374: doclint should report missing "body" comments
...
Reviewed-by: kcr, hannesw
2021-08-16 20:48:25 +00:00
Jonathan Gibbons
ec8d3badc8
8271159: [REDO] JDK-8249634 doclint should report implicit constructor as missing javadoc comments
...
Reviewed-by: darcy
2021-08-11 18:03:40 +00:00
Jan Lahoda
3215dbc8b8
8271928: ErroneousTree with start position -1
...
Reviewed-by: jlaskey, vromero
2021-08-11 08:54:20 +00:00
Joe Darcy
57ae9fbe77
8140442: Add getOutermostTypeElement to javax.lang.model utility class
...
Reviewed-by: jlahoda
2021-08-10 16:49:49 +00:00
Joe Darcy
7fc99cf9b6
8225488: Examine ExecutableType.getReceiverType behavior when source receiver parameter is absent
...
Reviewed-by: jjg
2021-08-09 18:33:34 +00:00
Liam Miller-Cushon
60c11fef00
8261088: Repeatable annotations without @Target cannot have containers that target module declarations
...
Reviewed-by: jfranck
2021-07-28 18:21:19 +00:00
Jesper Wilhelmsson
eb6da88817
Merge
2021-07-27 00:57:58 +00:00
Jim Laskey
b76a83888b
8269150: UnicodeReader not translating \u005c\\u005d to \\]
...
Reviewed-by: jjg, jlahoda, darcy
2021-07-26 18:04:28 +00:00
Daniel D. Daugherty
9b93d816c1
8271161: [BACKOUT] JDK-8249634 doclint should report implicit constructor as missing javadoc comments
...
Reviewed-by: iignatyev
2021-07-22 21:15:20 +00:00
Jonathan Gibbons
c1c404896c
8249634: doclint should report implicit constructor as missing javadoc comments
...
Reviewed-by: hannesw
2021-07-22 18:52:19 +00:00
Vicente Romero
c962e6ec0b
8261006: 'super' qualified method references cannot occur in a static context
...
Reviewed-by: sadayapalam
2021-07-15 15:33:23 +00:00
Thejasvi Voniadka
04b73bc4e0
8269656: The test test/langtools/tools/javac/versions/Versions.java has duplicate test cycles
...
Reviewed-by: darcy
2021-07-15 04:52:38 +00:00
Jesper Wilhelmsson
ec975c6a05
Merge
2021-07-10 01:23:18 +00:00
Jan Lahoda
1196b35684
8270151: IncompatibleClassChangeError on empty pattern switch statement case
...
Reviewed-by: mcimadamore
2021-07-09 11:03:40 +00:00
Jan Lahoda
885f7b1141
8269146: Missing unreported constraints on pattern and other case label combination
...
8269301: Switch statement with a pattern, constant and default label elements crash javac
Reviewed-by: mcimadamore
2021-07-09 08:03:56 +00:00
Jesper Wilhelmsson
dfd6b2be7d
Merge
2021-07-08 23:21:00 +00:00
Guoxiong Li
9e75f922b1
8269738: AssertionError when combining pattern matching and function closure
...
Reviewed-by: jlahoda, vromero
2021-07-08 14:15:07 +00:00
Jan Lahoda
fa08cc62df
8268766: Desugaring of pattern matching enum switch should be improved
...
Reviewed-by: mcimadamore, psandoz
2021-07-08 11:56:53 +00:00
Jan Lahoda
4f70759175
8270006: Switches with 'case null:' should be exhaustive
...
Reviewed-by: vromero
2021-07-08 08:03:09 +00:00
Jesper Wilhelmsson
270fbcb3f5
Merge
2021-07-08 00:55:53 +00:00
Jan Lahoda
7fcd5ca025
8266036: class file for sun.misc.Contended not found
...
8258421: (jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with "error: cannot access jdk.internal.ValueBased"
Reviewed-by: darcy
2021-07-07 09:49:53 +00:00
Jan Lahoda
820f2900d8
8268859: jshell throws exception while parsing illegal "case true"
...
Reviewed-by: mcimadamore
2021-07-07 07:26:41 +00:00
Jan Lahoda
815e4af35d
8269802: javac fails to compile nested pattern matching switches
...
8269808: javac generates class with invalid stack map
Reviewed-by: mcimadamore
2021-07-07 06:24:58 +00:00
Jesper Wilhelmsson
b0e186792e
Merge
2021-07-02 01:07:50 +00:00
Vicente Romero
de61328d30
8225559: assertion error at TransTypes.visitApply
...
Reviewed-by: sadayapalam, jlahoda
2021-07-01 16:18:12 +00:00
Jan Lahoda
a8385feb30
8269354: javac crashes when processing parenthesized pattern in instanceof
...
Reviewed-by: vromero
2021-07-01 10:10:03 +00:00
Jesper Wilhelmsson
9def3b068e
Merge
2021-07-01 01:01:34 +00:00
Liam Miller-Cushon
4930ae96d8
8268592: JDK-8262891 causes an NPE in Lint.augment
...
Reviewed-by: vromero
2021-07-01 00:16:23 +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
Jan Lahoda
c3c918928c
8269141: Switch statement containing pattern case label element gets in the loop during execution
...
Reviewed-by: vromero
2021-06-30 08:45:12 +00:00
Jesper Wilhelmsson
a29953d805
Merge
2021-06-27 23:51:05 +00:00
Jan Lahoda
4eb321298a
8268871: Adjust javac to updated exhaustiveness specification
...
Reviewed-by: vromero
2021-06-25 09:52:06 +00:00
Guoxiong Li
7ab12856c4
8267610: NPE at at jdk.compiler/com.sun.tools.javac.jvm.Code.emitop
...
8268748: Javac generates uncorrect bytecodes when using nested pattern variables
Reviewed-by: jlahoda, vromero
2021-06-24 23:07:43 +00:00
Vicente Romero
7e96318a1f
8254571: Erroneous generic type inference in a lambda expression with a checked exception
...
Reviewed-by: jlahoda, mcimadamore
2021-06-23 17:13:09 +00:00
Jan Lahoda
bf70620745
8268961: Parenthesized pattern with guards does not work
...
8268896: Parenthesized pattern is not guarded by source level check
Reviewed-by: vromero
2021-06-23 10:16:42 +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
Jesper Wilhelmsson
e0f6f70d3f
Merge
2021-06-15 22:45:28 +00:00
Jan Lahoda
35d867df1f
8268663: Crash when guards contain boolean expression
...
Reviewed-by: vromero
2021-06-15 09:04:35 +00:00
Guoxiong Li
bca914b29e
8268670: yield statements doesn't allow ~ or ! unary operators in expression
...
Reviewed-by: vromero, jlahoda
2021-06-14 19:02:23 +00:00
Jan Lahoda
abe20c188c
8268333: javac crashes when pattern matching switch contains default case which is not last
...
Reviewed-by: vromero
2021-06-14 14:25:32 +00:00
Joe Darcy
b018c450e5
8267630: Start of release updates for JDK 18
...
8267632: Add source 18 and target 18 to javac
8267631: Add SourceVersion.RELEASE_18
Reviewed-by: iris, erikj, dholmes
2021-06-10 16:22:14 +00:00
Vicente Romero
bb3d226a4e
8238213: Method resolution should stop on static error
...
Reviewed-by: jlahoda
2021-06-09 15:56:55 +00:00
Joel Borggrén-Franck
2717fcb134
8232948: javac -h should mangle the overload argument signature
...
Reviewed-by: jjg
2021-06-08 10:51:19 +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
Guoxiong Li
b7ac705dd6
8263642: javac emits duplicate checkcast for first bound of intersection type in cast
...
Reviewed-by: vromero
2021-06-02 17:17:31 +00:00
Jan Lahoda
19450b9951
8266281: Assign Symbols to the package selector expression
...
Reviewed-by: vromero
2021-06-02 11:16:10 +00:00
Jan Lahoda
9247630a0d
8265270: Type.getEnclosingType() may fail with CompletionFailure
...
Reviewed-by: vromero
2021-06-02 09:53:31 +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
Guoxiong Li
10a6f5d637
8230623: Extract command-line help for -Xlint sub-options to new --help-lint
...
Reviewed-by: jjg
2021-05-27 14:04:56 +00:00
Pavel Rappo
4343997a1a
8267708: Remove references to com.sun.tools.javadoc.**
...
This commit changes BaseOptions.java to fix the NoStringToLower test that failed after jdk.javadoc has been added to the list of package prefixes that NoStringToLower scans.
Reviewed-by: jjg
2021-05-26 11:27:15 +00:00
Jan Lahoda
f632254943
8267221: jshell feedback is incorrect when creating method with array varargs parameter
...
Reviewed-by: vromero
2021-05-26 11:12:22 +00:00
Weijun Wang
640a2afda3
8267184: Add -Djava.security.manager=allow to tests calling System.setSecurityManager
...
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: dholmes, alanb, dfuchs, mchung, mullan, prr
2021-05-24 16:55:55 +00:00
Vicente Romero
f5562f1214
8258535: jvm.ClassReader should set the accessor to the corresponding record component
...
Reviewed-by: jfranck
2021-05-24 14:50:22 +00:00
Jan Lahoda
ec8a8097c3
8267119: switch expressions lack support for deferred type-checking
...
Reviewed-by: mcimadamore
2021-05-21 14:09:42 +00:00
Vicente Romero
81f39ed3e0
8261205: AssertionError: Cannot add metadata to an intersection type
...
Reviewed-by: mcimadamore
2021-05-20 17:53:00 +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
Guoxiong Li
e858dd6197
8267361: JavaTokenizer reads octal numbers mistakenly
...
Reviewed-by: jlaskey
2021-05-19 12:50:54 +00:00
Vicente Romero
b8856b1c47
8263614: javac allows local variables to be accessed from a static context
...
Reviewed-by: mcimadamore
2021-05-17 15:03:32 +00:00
Guoxiong Li
17ceef97c3
8266819: Separate the stop policies from the compile policies completely
...
Reviewed-by: mcimadamore
2021-05-13 10:22:13 +00:00
Guoxiong Li
accbfeaf22
8226216: parameter modifiers are not visible to javac plugins across compilation boundaries
...
Reviewed-by: jlahoda
2021-05-12 14:32:57 +00:00
Guoxiong Li
ed32e02c05
8241187: ToolBox::grep should allow for negative filtering
...
Reviewed-by: vromero
2021-05-12 01:01:29 +00:00
Jan Lahoda
8468001f88
8263452: Javac slow compilation due to algorithmic complexity
...
Reviewed-by: vromero, jfranck
2021-05-11 10:06:04 +00:00
Vicente Romero
946b0fe19a
8266645: javac should not check for sealed supertypes in intersection types
...
Reviewed-by: mcimadamore
2021-05-07 14:38:18 +00:00
Jan Lahoda
a8046c9157
8266436: Synthetic constructor trees have non-null return type
...
Reviewed-by: vromero
2021-05-05 10:31:11 +00:00
Jan Lahoda
f0f6b0d919
8266027: The diamond finder does not find diamond candidates in field initializers
...
Reviewed-by: jfranck, vromero
2021-04-29 14:55:28 +00:00
Jan Lahoda
df7f0b4671
8198317: Enhance JavacTool.getTask for flexibility
...
Co-authored-by: Guoxiong Li <lgxbslgx@gmail.com>
Reviewed-by: jfranck
2021-04-29 09:38:24 +00:00
Jan Lahoda
0a4c33826d
8263432: javac may report an invalid package/class clash on case insensitive filesystems
...
Reviewed-by: vromero
2021-04-27 08:55:59 +00:00
Guoxiong Li
2b09ff219e
8232765: NullPointerException at Types.eraseNotNeeded() when compiling a class
...
Reviewed-by: mcimadamore
2021-04-26 14:13:13 +00:00
Jesper Steen Møller
83364a4b4a
8264258: Unknown lookups in the java package give misleading compilation errors
...
Reviewed-by: sadayapalam
2021-04-26 11:53:27 +00:00
Guoxiong Li
4b7f027407
8231179: Investigate why tools/javac/options/BCPOrSystemNotSpecified.java fails on Window
...
Reviewed-by: vromero
2021-04-24 02:18:31 +00:00
Guoxiong Li
d87a4c3b56
8239596: PARAMETER annotation on receiver type does not cause error
...
Reviewed-by: vromero
2021-04-24 02:17:39 +00:00
Guoxiong Li
657f103937
8057543: Replace javac's Filter with Predicate (and lambdas)
...
Reviewed-by: mcimadamore
2021-04-22 16:44:29 +00:00
Guoxiong Li
07a7510d87
8200145: Conditional expression mistakenly treated as standalone
...
Reviewed-by: mcimadamore
2021-04-21 14:36:47 +00:00
Vicente Romero
0b1b5c8d0b
8264373: javac hangs when annotation is declared with sealed public modifier
...
Reviewed-by: jlahoda
2021-04-15 19:07:11 +00:00
Joe Darcy
863feab998
8005295: Use mandated information for printing of repeating annotations
...
Reviewed-by: jjg
2021-04-09 22:02:34 +00:00
Guoxiong Li
57f1e7d934
8264696: Multi-catch clause causes compiler exception because it uses the package-private supertype
...
Reviewed-by: vromero
2021-04-08 21:34:51 +00:00
Joe Darcy
ccefa5e378
8261625: Add Elements.isAutomaticModule(ModuleElement)
...
Reviewed-by: vromero, jlahoda
2021-04-08 21:25:17 +00:00
Jonathan Gibbons
e8eda655bb
8264664: use text blocks in javac module tests
...
Reviewed-by: darcy
2021-04-03 01:18:00 +00:00
Jan Lahoda
fdfa1dda08
8264306: Non deterministic generation of java/lang/invoke/MemberName.class
...
Reviewed-by: shade, jfranck
2021-04-01 11:38:45 +00:00
Jan Lahoda
9cd21b687e
8263590: Rawtypes warnings should be produced for pattern matching in instanceof
...
Reviewed-by: mcimadamore
2021-03-18 12:37:20 +00:00
Jan Lahoda
6d3c858cbb
8259235: javac crashes while attributing super method invocation
...
Reviewed-by: vromero
2021-03-03 12:38:26 +00:00
Jan Lahoda
85a5ae8cb7
8261606: Surprising behavior of step over in String switch
...
Reviewed-by: vromero
2021-03-02 12:02:26 +00:00
hltj
de3f519dc9
8258897: wrong translation of capturing local classes inside nested lambdas
...
Co-authored-by: Bernard Blaser <bsrbnd@openjdk.org>
Reviewed-by: jlahoda
2021-02-26 13:09:47 +00:00
Adam Sotona
2eca17d1b1
8261457: test/langtools/tools/javac/T8187978 can fail if ArrayList class is modified
...
Reviewed-by: vromero
2021-02-25 14:59:32 +00:00
Jonathan Gibbons
c4f17a3e1d
8257925: enable more support for nested inline tags
...
Reviewed-by: prappo, hannesw
2021-02-19 15:59:05 +00:00
Jan Lahoda
d0a8f2f737
8260593: javac can skip a temporary local variable when pattern matching over a local variable
...
Reviewed-by: vromero
2021-02-08 09:36:29 +00:00
Jan Lahoda
90376156be
8222850: jshell tool: Misleading cascade compiler error in switch expression with undefined vars
...
Reviewed-by: vromero
2021-02-03 09:21:43 +00:00
Guoxiong Li
739bbd03c5
8260566: Pattern type X is a subtype of expression type Y message is incorrect
...
Reviewed-by: jlahoda, tvaleev
2021-01-29 18:27:03 +00:00
Vicente Romero
b2e582a882
8259905: Compiler treats 'sealed' keyword as 'var' keyword
...
Reviewed-by: jlahoda
2021-01-29 16:50:27 +00:00
Guoxiong Li
0eed2c3312
8259359: javac does not attribute unexpected super constructor invocation qualifier, and may crash
...
Reviewed-by: vromero
2021-01-27 18:12:57 +00:00
Jan Lahoda
b3c8a52803
8259050: Error recovery in lexer could be improved
...
Reviewed-by: vromero
2021-01-27 11:00:12 +00:00
Guoxiong Li
23edb6f6b2
8236490: Compiler bug relating to @NonNull annotation
...
Reviewed-by: vromero, jfranck
2021-01-26 08:57:20 +00:00
Jonathan Gibbons
d6fb9d7256
8255464: Cannot access ModuleTree in a CompilationUnitTree
...
Reviewed-by: vromero
2021-01-25 21:44:58 +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
Jonathan Gibbons
5f9cd72c54
8259645: Revert JDK-8245956 JavaCompiler still uses File API instead of Path API in a specific case
...
Reviewed-by: chegar
2021-01-12 19:57:08 +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
Guoxiong Li
33fbc10cb8
8259025: Record compact constructor using Objects.requireNonNull
...
Reviewed-by: attila
2021-01-11 13:50:53 +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
697bf7ab51
8257740: Compiler crash when compiling type annotation on multicatch inside lambda
...
Reviewed-by: vromero
2021-01-08 13:56:07 +00:00
Jesper Wilhelmsson
56a354eb55
Merge
2021-01-07 23:51:21 +00:00
Jesper Wilhelmsson
555641ede5
Merge
2021-01-07 21:17:35 +00:00
Vicente Romero
acdd90b699
8258972: unexpected compilation error with generic sealed interface
...
Reviewed-by: jlahoda
2021-01-07 16:38:53 +00:00
Yoshiki Sato
28e1f4d9ee
8247957: remove doclint support for HTML 4
...
8257204: Remove usage of -Xhtmlversion option from javac
8256313: JavaCompilation.gmk needs to be updated not to use --doclint-format html5 option
8258460: Remove --doclint-format option from javac
8256312: Valid anchor 'id' value not allowed
Reviewed-by: jjg, ihse
2021-01-06 22:48:00 +00:00
Guoxiong Li
7d769663b3
8255757: Javac emits duplicate pool entries on array::clone
...
Reviewed-by: vromero
2021-01-05 22:21:19 +00:00
Vicente Romero
d529306722
8213032: program fails with LambdaConversionException at execution time
...
Reviewed-by: jlahoda
2021-01-05 21:35:47 +00:00
Jan Lahoda
4ffbe841fc
8256266: Binding variables don't correctly support declaration annotations and the final modifier
...
Reviewed-by: mcimadamore
2021-01-05 11:40:25 +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
Jesper Wilhelmsson
07c93fab85
Merge
2020-12-29 05:24:20 +00:00
Guoxiong Li
881bceb9a3
8258662: JDK 17ea: Crash compiling instanceof check involving sealed interface
...
Reviewed-by: vromero
2020-12-28 15:32:02 +00:00
Guoxiong Li
97c99b5d7d
8216400: improve handling of IOExceptions in JavaCompiler.close()
...
8069116: improve fatal error handling in JavaCompiler
Reviewed-by: jjg
2020-12-26 17:30:39 +00:00
Jonathan Gibbons
e2aa724a67
8258941: Test specify the Classpath exception in the header
...
Reviewed-by: vromero
2020-12-24 17:32:25 +00:00
Jesper Wilhelmsson
57217b58bf
Merge
2020-12-24 08:28:24 +00:00
Vicente Romero
23b83c518d
8253954: javac crash when compiling code with enhanced switch expressions with option -Xjcov
...
Reviewed-by: jjg
2020-12-24 01:24:32 +00:00
Guoxiong Li
01d51a101a
8231622: SuppressWarning("serial") ignored on field serialVersionUID
...
Reviewed-by: jjg
2020-12-21 17:50:21 +00:00
Jesper Wilhelmsson
f15528eb64
Merge
2020-12-17 20:41:37 +00:00
Vicente Romero
47c180da43
8258515: javac should issue an error if an annotation is nested in a local class or interface
...
Reviewed-by: jjg
2020-12-17 18:08:35 +00:00
Guoxiong Li
41f312eb64
8254023: A module declaration is not allowed to be a target of an annotation that lacks an @Target meta-annotation
...
Reviewed-by: jfranck, vromero
2020-12-17 08:06:35 +00:00
Joe Darcy
6be1f5671e
8257450: Start of release updates for JDK 17
...
8257451: Add SourceVersion.RELEASE_17
8257453: Add source 17 and target 17 to javac
Reviewed-by: dholmes, erikj, iris, mikael, jjg, jlahoda, jwilhelm, mchung, ihse
2020-12-10 16:46:28 +00:00
Guoxiong Li
46c9a860b6
8245956: JavaCompiler still uses File API instead of Path API in a specific case
...
Reviewed-by: jjg
2020-12-09 21:09:23 +00:00
Harold Seigel
d33a689b96
8256867: Classes with empty PermittedSubclasses attribute cannot be extended
...
Reviewed-by: lfoltan, mchung, jlahoda, chegar
2020-12-09 19:07:11 +00:00
Jan Lahoda
bd22aa5e86
8229862: NPE in jdk.compiler/com.sun.tools.javac.jvm.Code.emitop0(Code.java:570)
...
Co-authored-by: Bernard Blaser <bsrbnd@openjdk.org>
Reviewed-by: vromero
2020-12-09 16:49:50 +00:00
Jan Lahoda
6eff9315e1
8256950: Add record attribute support to symbol generator CreateSymbols
...
Reviewed-by: jjg, chegar
2020-12-09 15:05:01 +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
Jan Lahoda
d0c526513d
8256149: Weird AST structure for incomplete member select
...
Reviewed-by: vromero
2020-12-08 13:09:15 +00:00
Jan Lahoda
51ac37686c
8256411: Based anonymous classes have a weird end position
...
Reviewed-by: vromero
2020-12-08 08:38:24 +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
Guoxiong Li
2c04fc02c9
8257037: No javac warning when calling deprecated constructor with diamond
...
Reviewed-by: mcimadamore
2020-12-07 13:51:33 +00:00
Jan Lahoda
637b0c64b0
8246778: Compiler implementation for Sealed Classes (Second Preview)
...
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Reviewed-by: lfoltan, mchung, alanb, mcimadamore, chegar
2020-12-07 11:11:31 +00:00
Guoxiong Li
29d90b952c
8255968: Confusing error message for inaccessible constructor
...
Reviewed-by: mcimadamore
2020-12-01 21:06:06 +00:00
Elliott Baron
8ddf5e172b
8256809: Annotation processing causes NPE during flow analysis
...
Reviewed-by: jlahoda
2020-11-23 16:02:52 +00:00
Kim Barrett
edf72f065f
8256824: test/langtools/tools/javac/diags/examples/InnerClassCantHaveStatic.java has a bad copyright
...
Reviewed-by: dcubed
2020-11-21 16:06:31 +00:00
Vicente Romero
9a19eb6918
8254105: allow static nested declarations
...
Reviewed-by: mcimadamore
2020-11-21 03:17:57 +00:00
Aleksey Shipilev
05b824567c
8256290: javac/lambda/T8031967.java fails with StackOverflowError on x86_32
...
Reviewed-by: mcimadamore
2020-11-13 07:40:19 +00:00
Jan Lahoda
129ff97fe6
8231599: NPE when loading a preview classfile from a future Java version
...
Reviewed-by: vromero
2020-11-11 09:11:02 +00:00
Vicente Romero
688b10b970
8255561: add tests to check binary compatibility rules for records
...
Reviewed-by: jjg
2020-11-06 16:39:40 +00:00
Jan Lahoda
18bc95ba51
8250625: Compiler implementation of Pattern Matching for instanceof (Final)
...
Reviewed-by: vromero
2020-11-05 08:01:33 +00:00
Vicente Romero
97a81cee25
8253385: annotation processors remove varargs information from record components
...
Reviewed-by: jjg
2020-11-04 23:30:41 +00:00
Jan Lahoda
d05df7c17a
8236842: Surprising 'multiple elements' behaviour from getTypeElement when cross-compiling with --release
...
Reviewed-by: vromero
2020-11-02 10:15:16 +00:00
Vicente Romero
8bde2f4e3d
8255013: implement Record Classes as a standard feature in Java, follow-up
...
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Co-authored-by: Chris Hegarty <chegar@openjdk.org>
Reviewed-by: jlahoda
2020-10-28 17:18:46 +00:00
Jan Lahoda
0e9205315e
8254286: Wrong inference in switch expression with "null" arm
...
Reviewed-by: mcimadamore, vromero
2020-10-23 09:47:29 +00:00
Guoxiong Li
cb6167b226
8254557: Compiler crashes with java.lang.AssertionError: isSubtype UNKNOWN
...
Reviewed-by: mcimadamore
2020-10-20 15:45:17 +00:00
Vicente Romero
1da28de82f
8255009: delta apply fixes for JDK-8246774 and JDK-8253455, pushed too soon
...
Reviewed-by: jlahoda
2020-10-19 15:55:54 +00:00
Vicente Romero
c17d58516f
8246774: implement Record Classes as a standard feature in Java
...
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Co-authored-by: Chris Hegarty <chegar@openjdk.org>
Reviewed-by: coleenp, jlahoda, sspitsyn, chegar
2020-10-18 18:54:33 +00:00
Jim Laskey
4f9a1ffcdd
8254073: Tokenizer improvements (revised)
...
Reviewed-by: mcimadamore
2020-10-09 11:08:56 +00:00
Jan Lahoda
a2f651904d
8233685: Test tools/javac/modules/AddLimitMods.java fails
...
Reviewed-by: vromero
2020-10-09 06:22:15 +00:00
Jan Lahoda
cd4faff0ec
8249095: tools/javac/launcher/SourceLauncherTest.java fails on Windows
...
Reviewed-by: jjg
2020-10-07 06:52:03 +00:00
Paul Sandoz
b29e1086ac
8253944: Certain method references to VarHandle methods should fail
...
Reviewed-by: mcimadamore
2020-10-05 17:15:31 +00:00
Jim Laskey
8fda5b82f0
8253904: Revert Tokenizer improvements JDK-8224225
...
Reviewed-by: mcimadamore
2020-10-01 17:42:29 +00:00
Jim Laskey
90c131f29f
8224225: Tokenizer improvements
...
Reviewed-by: mcimadamore
2020-10-01 15:39:01 +00:00
Jan Lahoda
d5be82948b
8253770: Test tools/javac/parser/JavacParserTest.java fails on Windows after JDK-8253584
...
Reviewed-by: vromero
2020-09-29 14:29:28 +00:00
Jan Lahoda
86491a5f6b
8253584: Redunant errors for partial member selects
...
Reviewed-by: vromero
2020-09-29 10:11:08 +00:00
Vicente Romero
ac15d6445b
8241151: Incorrect lint warning for no definition of serialVersionUID in a record
...
Co-authored-by: Bernard Blaser <bsrbnd@gmail.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: jjg
2020-09-28 21:20:14 +00:00
Gilles Duboscq
1b79326c05
8242451: ensure semantics of non-capturing lambdas are preserved independent of execution mode
...
Reviewed-by: mchung
2020-09-25 10:10:36 +00:00
Jan Lahoda
68da63dcde
8240658: Code completion not working for lambdas in method invocations that require type inference
...
Reviewed-by: vromero
2020-09-14 08:13:10 +00:00
Vicente Romero
433394203d
8250217: com.sun.tools.javac.api.JavacTaskImpl swallows compiler exceptions potentially producing false positive test results
...
Reviewed-by: jlahoda
2020-09-09 14:05:00 +00:00
Jan Lahoda
5fef8ddaff
8235229: Compilation against a modular, multi-release JAR erroneous with --release
...
Reviewed-by: vromero
2020-09-09 13:03:00 +00:00
Jan Lahoda
c98417ebca
8250840: some tests use --enable-preview unnecessarily
...
Reviewed-by: vromero
2020-09-09 07:51:43 +00:00
Vicente Romero
4b3a0b789e
8247352: improve error messages for sealed classes and records
...
Reviewed-by: mcimadamore
2020-09-04 23:51:26 -04:00
Vicente Romero
5d2e79e2c3
8252307: javac rejects code with annotation applicable to fields
...
Reviewed-by: darcy
2020-09-04 13:44:48 -04:00
Jan Lahoda
a951a15379
8245664: javac erroneously issues deprecation warning for use of a deprecated package
...
Reviewed-by: vromero
2020-09-03 11:14:23 +02:00
Jan Lahoda
aab706c66f
8160601: unexpected error compiling @Deprecated package
...
Reviewed-by: jlaskey
2020-09-03 11:13:46 +02:00
Vicente Romero
e19022e515
8230776: Javac throws AssertionError in jvm.Gen.visitExec
...
8231311: javac throws NPE in TransTypes.retype
8230964: Javac throws AssertionError in PoolReader.resolve
8230963: javac throws j.l.CCE in PoolReader.getName
8230919: javac throws j.l.CCE in ClassReader.readClass
Reviewed-by: jlahoda
2020-09-01 14:31:18 -04:00
Pavel Rappo
26b48999df
8252172: Improve prettiness of printing HTML attributes by DocPretty
...
Reviewed-by: jjg
2020-08-28 15:26:34 +01:00
Joe Darcy
ba7f7fe417
8251921: Expand default constructor warning to cover more cases
...
Reviewed-by: jjg, abuckley
2020-08-27 13:01:41 -07:00
Jan Lahoda
235ef8e6df
8252458: Test tools/javac/parser/JavacParserTest.java fails on Windows after JDK-8237041
...
Reviewed-by: vromero
2020-08-27 20:20:39 +02:00
Jan Lahoda
0504064717
8237041: AssertionError in parsing
...
Avoid parser crash for deeply nested classes without closing braces, improve error recovery for classes without an opening brace.
Reviewed-by: vromero
2020-08-27 16:15:11 +02:00
Jie Fu
f586b6c0cd
8252264: tools/javac/flags/LockedFlagClash.java fails to compile
...
Reviewed-by: jlahoda
2020-08-25 12:46:18 +08:00
Jan Lahoda
b29c1fbbd1
8252031: --patch-module java.base= may fail with \"cyclic inheritance involving Object\"
...
Avoiding clash in use of Flags.LOCKED between Types.asSuper and Check.checkNonCyclic.
Reviewed-by: jjg
2020-08-20 10:48:36 +02:00
Pavel Rappo
ecfb2914d0
8251357: [DocCommentParser] Infinite loop while looking for the end of a preamble
...
Reviewed-by: jjg
2020-08-19 17:44:14 +01:00
Vicente Romero
c2ee432602
8249902: tools/javac/records/mandated_members/read_resolve_method/CheckReadResolveMethodTest.java uses @ignore w/o bug-id
...
Reviewed-by: jjg
2020-08-18 19:23:58 -04:00
Joe Darcy
61e42ed85d
8071961: Add javac lint warning when a default constructor is created
...
Reviewed-by: jjg, jlahoda, abuckley, erikj, mcimadamore
2020-08-17 18:58:20 -07:00
Vicente Romero
229f41808d
8250629: do not allow C-style array declaration in record components
...
Reviewed-by: jlahoda
2020-07-31 12:13:52 -04:00
Vicente Romero
0f5e57aa8c
8250741: an annotation interface may not be declared as a local interface
...
Reviewed-by: jlahoda
2020-07-31 12:05:55 -04:00
Jan Lahoda
27a9a2f64a
8249261: AssertionError in StructuralStuckChecker
...
Reviewed-by: mcimadamore
2020-07-29 11:34:25 +02:00
Jan Lahoda
b37228e11f
8248641: Trees.getScope returns incorrect results for code inside a rule case
...
Ensuring rule cases are copied correctly by TreeCopier.
Reviewed-by: vromero
2020-07-29 11:34:24 +02:00
Vicente Romero
6c2ff1781b
8249829: javac is issuing an incorrect static access error
...
Reviewed-by: jlahoda
2020-07-27 10:12:30 -04:00
Vicente Romero
75d642a467
8243057: compilation of annotated static record fields fails with NPE
...
Reviewed-by: jlahoda
2020-07-24 10:34:18 -04:00
Vicente Romero
3a69dfb5c5
8245652: some tests at RecordCompilationTests are resetting the wrong compilation options
...
Reviewed-by: darcy
2020-07-20 12:14:44 -04:00
Vicente Romero
bcd4690bc3
8247790: javac shouldn't allow type variable references from local static declarations
...
Reviewed-by: jlahoda
2020-07-15 22:36:45 -04:00
Jesper Wilhelmsson
d3d29a4f82
Merge
2020-07-10 02:51:04 +02:00
Vicente Romero
37880ba60d
8242529: javac defines type annotations incorrectly for record members (constructor and property accessor)
...
Reviewed-by: psandoz, jlahoda
2020-07-09 17:37:53 -04:00
Jan Lahoda
a4b135316c
8244763: Update --release 8 symbol information after JSR 337 MR3
...
Reviewed-by: jjg, wetmore
2020-05-18 18:20:53 +02:00
Vicente Romero
fc82768478
8247849: permits clause of sealed interfaces should not allow parameterized types
...
Reviewed-by: jlahoda
2020-06-25 17:48:53 -04:00
Jan Lahoda
31c511e6a5
8246704: --release => \"unknown enum constant PreviewFeature$Feature.TEXT_BLOCKS\"
...
Use a synthetic annotation instead of inaccessible jdk.internal.PreviewFeature in ct.sym, and avoid resolving that annotation, to prevent errors being printed for the inaccessible types.
Reviewed-by: jlaskey
2020-06-25 11:06:46 +02:00
Jonathan Gibbons
8b6d3147fb
8247815: doclint: recategorize "no description for ..." as MISSING, not SYNTAX
...
Reviewed-by: prappo
2020-06-19 11:04:52 -07:00
Jan Lahoda
226e852831
8242214: NullPointerException in JDK 14 javac compiling a method reference
...
Ensuring a proper receiver is used to invoke protected method when method reference is unrolled into a lambda.
Reviewed-by: vromero
2020-06-19 14:26:09 +02:00
Jonathan Gibbons
de3923edf9
8247788: DocCommentParser should not reject standalone '>'
...
Reviewed-by: prappo
2020-06-18 14:07:49 -07:00
Vicente Romero
ecb4cbfd4a
8245842: provide tests for binary compatibility assertions for sealed classes
...
Reviewed-by: jjg
2020-06-17 14:39:44 -04:00
Vicente Romero
ce4978ffe6
8246257: Annotated record's vararg type component started to be uncompilable with JDK15b24
...
Reviewed-by: jjg, jlaskey
2020-06-17 13:19:51 -04:00
Adam Sotona
ed4b801771
8238735: NPE compiling lambda expression within conditional expression
...
The fix saves result type from the first pass through the Attr.visitLambda and returns it after recovery pass to avoid NPE caused by exposure of Type.recoveryType
Reviewed-by: mcimadamore
2020-06-17 13:18:19 +02:00
Jan Lahoda
19c5bfe42f
8247334: Trees.getScope crashes for annotated local records
...
Reviewed-by: vromero
2020-06-12 13:38:06 +02:00
Jan Lahoda
a5e03e234b
8235564: javac crashes while compiling incorrect method invocation with member reference
...
Reviewed-by: vromero
2020-06-10 11:01:29 +02:00
Adam Sotona
022d7a19d3
8236108: tools/javac/lambda/LambdaParserTest.java timed out
...
The patch filters redundant or non-sense combinations of lambdas and it reduces the number of performed sub-tests.
Reviewed-by: vromero
2020-06-09 09:37:53 -04:00
Adam Sotona
63ade9c49c
8236697: Stack overflow with cyclic hierarchy in class file
...
Implemented minimal necessary cycle detection to avoid stack overflow in c.s.t.j.code.Types::asSuper
Reviewed-by: vromero
2020-06-08 16:07:03 -04:00
Vicente Romero
e90621c169
8246199: 'permits' is a restricted identifier
...
Reviewed-by: mcimadamore
2020-06-08 11:08:28 -04:00
Jan Lahoda
358714bcd0
8246353: Sealed types not supported by jshell
...
Reviewed-by: rfield, vromero
2020-06-08 16:59:43 +02:00
Toshio Nakamura
28e219f038
8233829: javac cannot find non-ASCII module name under non-UTF8 environment
...
Reviewed-by: jjg
2020-07-06 16:08:00 -07:00
Jesper Wilhelmsson
6b8bf62a75
Merge
2020-07-03 00:14:21 +02:00
Jesper Wilhelmsson
55b472251e
Merge
2020-06-26 04:15:33 +02:00
Jesper Wilhelmsson
4862d0d542
Merge
2020-06-22 18:23:49 +02:00
Jesper Wilhelmsson
a16994ff7b
Merge
2020-06-19 00:30:46 +02:00
Joe Darcy
be278bc564
8246222: Rename javac test T6395981.java to be more informative
...
Reviewed-by: jjg
2020-06-12 13:16:40 -07:00
Jan Lahoda
1b64fb2063
8247334: Trees.getScope crashes for annotated local records
...
Reviewed-by: vromero
2020-06-12 13:38:06 +02:00
Joe Darcy
a5b5712733
8235496: Start of release updates for JDK 16
...
8245585: Add SourceVersion.RELEASE_16
8245586: Add source 16 and target 16 to javac
8245544: com/sun/tools/javac/platform/JDKPlatformProvider.java does not support ct.sym with platform versions 16+
Co-authored-by: David Holmes <david.holmes@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: erikj, dholmes, ihse, neugens, jjg, jlahoda, jlaskey, mikael
2020-06-07 20:02:03 -07:00
Vicente Romero
0db1be28c7
8246486: javac doesn't allow a subclass to be declared before a sealed superclass with no permits clause
...
Reviewed-by: mcimadamore
2020-06-04 19:02:43 -04:00
Jan Lahoda
44ae643b2b
8210649: AssertionError @ jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:244)
...
Do not clean trees after last round of annotation processing, if the trees won't be re-entered again.
Reviewed-by: vromero
2020-06-02 08:41:36 +02:00
Jan Lahoda
04ad75e788
8241519: javac crashes with wrong module-info.class in module path
...
If module-info.class is broken, mark the corresponding ModuleSymbol as erroneous.
Reviewed-by: jjg
2020-06-02 08:27:37 +02:00
Vicente Romero
d42bfef8a4
8227046: compiler implementation for sealed classes
...
8225056: VM support for sealed classes
8227044: javax.lang.model for sealed classes
8227045: Preview APIs support for sealed classes
8227047: Javadoc for sealed types
8245854: JVM TI Specification for sealed classes
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: mcimadamore, forax, darcy, dholmes, jlahoda, lfoltan, mchung, sspitsyn, vromero
2020-06-01 17:00:40 -04:00
Adam Sotona
5a57b9f8ec
8245153: Unicode encoded double-quoted empty string does not compile
...
Fixed parsing of Unicode encoded double-quoted empty strings in c.s.t.j.p.JavaTokenizer::scanString
Reviewed-by: jlaskey
2020-05-29 09:56:05 +02:00
Adam Sotona
456fe234ce
8230827: javac gives inappropriate warning about potentially ambiguous methods
...
Fix of too strict com.sun.tools.javac.comp.Comp:checkPotentiallyAmbiguousOverloads method
Reviewed-by: jlahoda
2020-05-28 10:52:37 +02:00
Jan Lahoda
7671f2716b
8245786: Scope is wrong for ClassTree representing record
...
Listing RECORD as a class-like Tree Kind while computing Scope.
Reviewed-by: jjg
2020-05-28 13:37:39 +02:00
Adam Sotona
954db3353e
8241312: missing code coverage for records
...
Added tests for better coverage of records
Reviewed-by: vromero
2020-05-27 10:16:19 -04:00
Jonathan Gibbons
aabcf9f792
8245847: Update Profile.java to not require per-release updates
...
Reviewed-by: darcy
2020-05-26 13:25:23 -07:00
Joe Darcy
6cbf57aa37
8245147: Refactor and improve utility of test/langtools/tools/javac/versions/Versions.java
...
Reviewed-by: vromero
2020-05-19 15:17:00 -07:00
Jan Lahoda
ed9cbe252d
8241616: Timestamps on ct.sym entries lead to non-reproducible builds
...
Generate ct.sym in a reproducible way
Reviewed-by: ihse
2020-04-29 18:35:14 +02:00
Vicente Romero
9efdaacc31
8242478: compiler implementation for records (Second Preview)
...
Reviewed-by: mcimadamore, jlahoda, darcy
2020-05-17 11:09:52 -04:00
Jonathan Gibbons
49bfbd3bc7
8243417: Clean up com.sun.tools.javac.main.CommandLine
...
Reviewed-by: prappo
2020-05-13 10:39:35 -07:00
Jan Lahoda
4e55421171
8243548: Javac incorrectly collects enum fields when verifying switch expression exhaustivness
...
When gathering enum constants for exhaustivness analysis, make sure nested enum classes are not included
Reviewed-by: vromero
2020-05-04 12:28:36 +02:00
Jan Lahoda
1a35219f01
8243557: Inconvenient span for multi-catch error diagnostics
...
Reviewed-by: vromero
2020-05-04 12:28:35 +02:00
Jonathan Gibbons
009dd60ea3
8241780: Allow \n@ inside inline tags
...
Reviewed-by: prappo
2020-04-23 16:10:45 -07:00
Mandy Chung
7cc1371059
8238358: Implementation of JEP 371: Hidden Classes
...
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: David Holmes <david.holmes@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jamsheed Mohammed C M <jamsheed.c.m@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Reviewed-by: alanb, cjplummer, coleenp, dholmes, dlong, forax, jlahoda, psandoz, plevart, sspitsyn, vromero
2020-04-21 06:55:38 -07:00
Jan Lahoda
ec1c111c6c
8243074: Misplaced and/or duplicate super or this constructor invocation not attributed
...
Fully attributing misplaced and/or duplicated super/this constructor invocations
Reviewed-by: mcimadamore
2020-04-20 12:36:09 +02:00
Jan Lahoda
4b6e75dc72
8243047: javac may crash when processing exits in class initializers
...
Flow should handle invalid exits from class initializers gracefully
Reviewed-by: vromero
2020-04-20 12:36:09 +02:00
Jan Lahoda
df82d9a4b5
8242802: javac crashes when checking equals and hashCode in unresolvable anonymous class
...
Preventing NullPointerException when a class has an erroneous supertype and does not have an implementation of the equals method.
Reviewed-by: darcy, vromero
2020-04-20 12:36:09 +02:00
Liam Miller-Cushon
4895a19dd1
8241798: Allow enums to have more constants
...
Reviewed-by: mcimadamore, briangoetz, forax
2020-03-28 16:15:52 -07:00
Jim Laskey
ef8537ec1a
8241741: Implement Text Blocks as a standard feature in javac
...
Reviewed-by: jlahoda
2020-04-09 10:55:01 -03:00
Adam Sotona
c2efd224ca
8239544: Javac does not respect should-stop.ifNoError policy to stop after CompileState PARSE, ENTER and PROCESS
...
JavaCompiler patch fixing its response to should-stop.ifNoError= option for PARSE, ENTER and PROCESS compiler states + new T8239544.java matrix regression test
Reviewed-by: jlaskey, jlahoda
2020-04-08 15:00:39 +02:00
Liam Miller-Cushon
25642dd303
8035787: SourcePositions are wrong for Strings concatenated with '+' operator
...
Reviewed-by: jlahoda
2020-04-06 15:40:16 -07:00
Vicente Romero
bf54c47471
8240970: Some tests fail when run with JCov
...
Reviewed-by: jjg
2020-03-18 14:33:05 -04:00
Jan Lahoda
6ddb0f2b2c
8240964: Compilation error thrown when long literal used with yield
...
Ensuring yield followed by a long literal is recognized as a yield statement.
Reviewed-by: mcimadamore
2020-03-16 13:06:35 +01:00
Vicente Romero
f819e417f9
8235339: test TargetAnnoCombo.java is failing after new target RECORD_COMPONENT was added
...
Reviewed-by: darcy
2020-03-14 17:08:25 -04:00
Vicente Romero
afbe2286e2
8239447: compiler error for annotations applied to record components with target METHOD
...
Reviewed-by: mcimadamore
2020-03-13 10:29:03 -04:00
Adam Sotona
5eef59d22d
8235216: typo in test filename
...
Renamed MutliReleaseModuleInfoTest.java to MultiReleaseModuleInfoTest.java
Reviewed-by: jjg
2020-03-10 17:33:37 +01:00
Vicente Romero
4a32eda417
8240454: incorrect error message: as of release 13, 'record' is a restricted type name
...
Reviewed-by: jlahoda
2020-03-05 16:46:24 -05:00
Jan Lahoda
0c9983887d
8228451: NPE in Attr.java when -XDshould-stop.ifError=FLOW
...
Avoiding parsing of compound assignment as a type.
Reviewed-by: jjg, vromero
2020-03-04 13:43:27 +01:00
Joe Darcy
d4a069b33b
8237450: JDK13 annotation processors not run when a supported annotation type specifies a module
...
Initial fix suggested by jjg based on through analysis by Jeremy Kuhn.
Reviewed-by: jjg
2020-02-18 17:03:54 -08:00
Vicente Romero
4c707c1df3
8238838: spurious error message for compact constructors with throws clause
...
Reviewed-by: mcimadamore
2020-02-13 14:13:08 -05:00
Jan Lahoda
2f45d46640
8237528: Inefficient compilation of Pattern Matching for instanceof
...
Avoiding unnecessary cast and comparison in type test pattern desugaring.
Reviewed-by: forax, mcimadamore
2020-01-29 10:37:22 +01:00
Adam Sotona
f2013ac247
8236997: tools/javac tests fail with --illegal-access=deny
...
Correctly exporting packages to tests.
Reviewed-by: jlahoda
2020-01-28 09:13:27 +01:00
Vicente Romero
64288e1e76
8235149: javac parser is too aggressive on ambiguous expressions using identifier: record
...
Reviewed-by: mcimadamore
2020-01-27 18:50:19 -05:00
Vicente Romero
0f98701e87
8236210: javac generates wrong annotation for fields generated from record components
...
Reviewed-by: mcimadamore
2020-01-23 19:20:11 -05:00
Mikael Vidstedt
eef726a99a
8237601: test/langtools/tools/javac/warnings/MaxDiagsRecompile.java fails after JDK-8237589
...
Reviewed-by: dholmes
2020-01-21 17:37:18 -08:00
Mikael Vidstedt
3318314c7c
8237589: Fix copyright header formatting
...
Reviewed-by: jjg, serb, iris, jwilhelm
2020-01-21 14:23:01 -08:00
Jesper Wilhelmsson
51d5164ca2
Merge
2020-01-16 04:09:50 +01:00
Jan Lahoda
8787b9a66d
8233655: NPE at jdk.compiler/com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitApply
...
Ensuring that errors reported during speculative attribution that belong to a different file are not lost.
Reviewed-by: mcimadamore
2020-01-15 11:31:16 +01:00
Vicente Romero
5ff1d72185
8236005: local records shouldn't capture any non-static state from any enclosing type
...
Reviewed-by: mcimadamore
2020-01-14 07:07:43 -05:00
Jan Lahoda
a35d087f54
8236670: Conflicting bindings accepted in some cases
...
Reviewed-by: mcimadamore
2020-01-14 11:10:07 +01:00
Jesper Wilhelmsson
d34f561de0
Merge
2020-01-15 20:41:46 +01:00
Jan Lahoda
8e2c1c68f6
8236546: Yield with boolean expression and Object target type crashes javac
...
The whenTrue and whenFalse sets need to be merged for non-boolean expressions.
Reviewed-by: mcimadamore
2020-01-13 10:50:31 +01:00
Vicente Romero
4692bc58eb
8236841: compact constructor parameters are always final
...
Reviewed-by: mcimadamore
2020-01-10 15:32:04 -05:00
Vicente Romero
ff77d06f17
8236597: issues inferring type annotations on records
...
Reviewed-by: mcimadamore
2020-01-15 10:45:03 -05:00
Vicente Romero
ddcac6f066
8236682: Javac generates a redundant FieldRef constant for record fields
...
Reviewed-by: mcimadamore
2020-01-14 21:49:43 -05:00
Jesper Wilhelmsson
913b8702d1
Merge
2020-01-13 15:40:09 +01:00
Jesper Wilhelmsson
943b87ddde
Merge
2020-01-09 20:21:53 +01:00
Jesper Wilhelmsson
257a1bb854
Merge
2020-01-08 16:03:32 +01:00
Vicente Romero
50a56141ba
8234445: spurious error message for record constructors with receiver parameters
...
Reviewed-by: mcimadamore
2020-01-07 09:21:07 -05:00
Vicente Romero
be6b4aab40
8236692: static final fields without initializer are accepted by javac
...
Reviewed-by: mcimadamore
2020-01-08 15:18:58 -05:00
Jan Lahoda
ad5ea72286
8235541: Extend javax.lang.model to cover binding variables
...
Reviewed-by: darcy
2019-12-09 09:40:09 +01:00
Jonathan Gibbons
d8d4cd6508
8235597: Extend support for -XDaccessInternalAPI to plugin modules
...
Reviewed-by: mcimadamore, jlahoda
2019-12-11 16:32:49 -08:00
Jonathan Gibbons
75acf956f1
Merge
2019-12-11 15:34:19 -08:00
Jonathan Gibbons
93b7d283d8
8214916: SourceLauncherTest fails on exploded image
...
Reviewed-by: ksrini
2019-12-11 15:33:17 -08:00
Vicente Romero
69c1729e26
8234101: Compilation error thrown when repeating annotation is used on record component
...
Reviewed-by: jlahoda
2019-12-11 15:31:40 -05:00
Jeremy Kuhn
cbe604cf5d
8235457: Crash when reporting a message about an annotation on a module
...
8235458: Problem caused by imports in a module-info.java file
Reviewed-by: jjg
2019-12-11 11:55:50 -08:00
Jonathan Gibbons
589f23568a
8234689: facilitate writing additional custom attributes in a class file
...
Reviewed-by: jlahoda
2019-12-09 12:27:57 -08:00
Jonathan Gibbons
45b8d09e1b
8234211: allow discoverable javac plugins to be invoked by default
...
Reviewed-by: jlahoda
2019-12-09 10:44:02 -08:00
Vicente Romero
bf2f855cd7
8235446: confusing error message for records with no parens
...
Reviewed-by: mcimadamore
2019-12-06 14:23:17 -05:00