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
Jonathan Gibbons
56abdc178e
8246712: doclint incorrectly reports some HTML elements as empty
...
Reviewed-by: prappo
2020-06-09 19:34:18 -07: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
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
4eeb61299f
8244573: java.lang.ArrayIndexOutOfBoundsException thrown for malformed class file
...
Fixed java.lang.ArrayIndexOutOfBoundsException in com.sun.tools.classfile.Code_attribute.getInstructions() for methods with no instructions
Reviewed-by: vromero
2020-05-30 20:10:18 -04:00
Hannes Wallnöfer
b43f356288
8177280: @see {@link} syntax should allow generic types
...
8237826: DocTrees should provide getType(DocTreePath) method
Reviewed-by: jjg
2020-05-29 14:28:13 +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
Roger Riggs
3cf922b3d1
8242462: Residual Cleanup of rmic removal
...
Reviewed-by: jjg, amlu, erikj, iignatyev, mseledtsov
2020-04-10 16:33:56 -04: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