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
Vicente Romero
9695ddfffc
8234445: spurious error message for record constructors with receiver parameters
...
Reviewed-by: mcimadamore
2019-12-19 11:46:35 -05:00
Jim Laskey
945c8d555b
8232681: ArrayIndexOutOfBoundsException with text blocks in javac when using -Xlint
...
Reviewed-by: sundar
2019-12-05 09:22:21 -04:00
Vicente Romero
827e5e3226
8225054: Compiler implementation for records
...
8225052: javax.lang.model support for records
8225053: Preview APIs support for records
8225055: Javadoc for records
8226314: com.sun.source support for records
8227113: Specification for java.lang.Record
8233526: JVM support for records
Implement records in the compiler and the JVM, including serialization, reflection and APIs support
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: mcimadamore, briangoetz, alanb, darcy, chegar, jrose, jlahoda, coleenp, dholmes, lfoltan, mchung, sadayapalam, hannesw, sspitsyn
2019-12-04 15:57:39 -05:00
Jan Lahoda
07be23513b
8234922: No compilation error reported not reported for a binding variable when loop broken with label
...
Any break outside of a loop should confine the binding variables from the loop's condition to the loop
Reviewed-by: mcimadamore
2019-12-04 09:38:32 +01:00
Jan Lahoda
f26bdf8476
8234899: Compiler reports AssertionError for conditional operator ? : and pattern matching for instanceof
...
Reviewed-by: mcimadamore
2019-12-04 09:38:31 +01:00
Jim Laskey
234f326d79
8233116: Escape Sequences For Line Continuation and White Space (Preview)
...
Reviewed-by: vromero, jlahoda, bchristi, mcimadamore
2019-12-03 08:35:21 -04:00
Jan Lahoda
229e0d1631
8231826: Implement javac changes for pattern matching for instanceof
...
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Gavin Bierman <gavin.bierman@oracle.com>
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Srikanth Adayapalam <srikanth.adayapalam@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: mcimadamore
2019-11-27 09:00:01 +01:00
Srikanth Adayapalam
05ca3218d9
8234729: Javac should eagerly change code generation for method references to avert IllegalAccessError in future
...
Reviewed-by: mcimadamore
2019-11-26 11:13:53 +05:30
Jaikiran Pai
0435ec1aaa
8232170: FSInfo#getJarClassPath throws an exception not declared in its throws clause
...
Reviewed-by: jjg
2019-11-22 10:38:35 -08:00
Per Lidén
5cb6271830
8234382: Test tools/javac/processing/model/testgetallmembers/Main.java using too small heap
...
Reviewed-by: eosterlund, tschatzl
2019-11-20 10:37:46 +01:00
Jie Fu
368b6b5a2d
8234183: [TESTBUG] tools/javac/api/TestModuleUnnamedPackage.java fails to compile
...
Reviewed-by: jjg
2019-11-14 12:42:44 -08:00
Joe Darcy
c64756158f
8233096: Update javax.lang.model for switch expressions
...
Reviewed-by: jjg, jlahoda
2019-11-13 15:16:45 -08:00
Jonathan Gibbons
71a86af40e
8234025: Elements.getPackageElement(ModuleElement,CharSequence) returns null for unnamed package
...
Reviewed-by: jlahoda
2019-11-13 10:33:00 -08:00
Jan Lahoda
29852ecd80
8232684: Make switch expressions final
...
Reviewed-by: alanb, mcimadamore, kvn
2019-11-12 06:32:13 +00:00
Vicente Romero
89e0d29101
8235778: No compilation error reported when a record is declared in a local class
...
Reviewed-by: mcimadamore
2019-12-16 15:33:03 -05:00
Joe Darcy
890826bf5b
8225361: Start of release updates for JDK 15
...
8235497: Add SourceVersion.RELEASE_15
8235528: Add source 15 and target 15 to javac
Reviewed-by: erikj, jjg, jlahoda, dholmes, alanb, hseigel, mikael, chegar
2019-12-10 16:38:53 -08:00
Jan Lahoda
7a006b3608
8230847: Trees.getScope may crash when invoked for statement inside switch
...
More thoroughly avoiding side-effects when attributing (to) for Trees.getScope.
Reviewed-by: mcimadamore
2019-11-04 10:58:14 +01:00
Vojin Jovanovic
29f2d74173
8232806: Introduce a system property to disable eager lambda initialization
...
Reviewed-by: briangoetz, mr, psandoz, forax
2019-10-28 15:03:36 +01:00
Jan Lahoda
a1894385b3
8226585: Improve javac messages for using a preview API
...
Avoiding deprecation for removal for APIs associated with preview features, the features are marked with an annotation, and errors/warnings are produced for them based on the annotation.
Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Reviewed-by: erikj, mcimadamore, alanb
2019-10-21 15:38:26 +02:00
Brad Corso
3e8d409cee
8230162: ScopeImpl.remove() has O(N) performance
...
Reviewed-by: jlahoda
2019-10-08 15:43:38 +02:00
Jan Lahoda
a51a8527e7
8228460: bootstrap class path not set in conjunction with -source 11
...
Ensuring implicit system module path is checked for the no-bootclasspath warning for -source >= 9.
Reviewed-by: vromero
2019-09-18 10:41:18 +02:00
Jan Lahoda
2fa3eddd3c
8177068: incomplete classpath causes NPE in Flow
...
Undo completions that failed during speculative attribution, so that the appropriate CompletionFailures are thrown again and properly reported.
Reviewed-by: vromero
2019-09-05 12:39:48 +02:00
Joe Darcy
f14e213524
8230337: Clarify intention of Elements.{getPackageOf, getModuleOf}
...
Reviewed-by: jjg
2019-08-30 11:26:48 -07:00
Jan Lahoda
1d71dd8604
8230105: -XDfind=diamond crashes
...
Avoiding side-effects in Analyzer's speculative attribution.
Reviewed-by: mcimadamore, vromero
2019-08-30 12:24:16 +02:00
Jan Lahoda
f033152eae
8228502: javac crashed on a broken classfile with ConstantValue attribute on a field of type Object
...
Produce an error when reading a classfile with a field with ConstantValue with a wrong type.
Reviewed-by: vromero
2019-08-13 10:27:34 +02:00
Jan Lahoda
36ae680f2a
8228647: Broken enum produce inconvenient errors and AST
...
Improving error recovery for misplace members in enums.
Reviewed-by: vromero
2019-08-13 10:27:33 +02:00
Jan Lahoda
6e86f5b47b
8227922: DocTreeScanner does not dive into AttributeTree.getValue() and LiteralTree.getBody()
...
DocTreeScanner.visitAttribute and visitLiteral have to scan through the subnodes of AttributeTree and LiteralTree, respectivelly.
Reviewed-by: vromero
2019-08-13 10:27:32 +02:00
Christoph Langer
d3fa36896e
8228571: [TESTBUG] Fix tests failing on non-aot platforms after JDK-8227512
...
Reviewed-by: iignatyev, jjg
2019-07-26 09:06:03 +02:00
Jan Lahoda
03270bb92a
8227923: End position of EndElementTree is -1
...
Fixing end positions for DocTrees EndElementTree, EntityTree and CommentTree.
Reviewed-by: jjg
2019-07-22 12:21:18 +02:00
Mikael Vidstedt
f08a9de3b2
Merge
2019-07-17 04:33:37 -07:00
Jan Lahoda
c0d870559f
8227640: javac crashes on text blocks with invalid escapes
...
Do not translate escape sequences if text block contains illegal escapes.
Reviewed-by: jlaskey
2019-07-16 10:48:22 +02:00
Pengfei Li
a5388f21b7
8227512: [TESTBUG] Fix JTReg javac test failures with Graal
...
Reviewed-by: mcimadamore
2019-07-16 00:57:00 +00:00
Jan Lahoda
32a7e50bee
8220041: NullPointerException at jdk.compiler/com.sun.tools.javac.jvm.Code.emitop0
...
LambdaToMethod must correctly capture local variables inside switch expressions inside local variable initializers.
Reviewed-by: mcimadamore, vromero
2019-07-10 09:04:42 +02:00
Mikael Vidstedt
e9d003926b
Merge
2019-07-10 07:27:58 -07:00
Jan Lahoda
d24296edf4
8223443: Calling Trees.getScope early changes names of local/anonymous classes
...
Ensure Trees.getScope does not affect the rest of the compilation.
Reviewed-by: mcimadamore
2019-07-09 09:20:04 +02:00
Jan Lahoda
c4213848c0
8227010: Error recovery after local variable redeclaration can be improved
...
Entering duplicate local variables into the current scope so that the new variable is used instead of the previous variable.
Reviewed-by: mcimadamore
2019-07-04 16:51:24 +02:00
Mikael Vidstedt
c200fc1f34
Merge
2019-07-03 07:56:41 -07:00
Jesper Wilhelmsson
37599ff955
Merge
2019-06-29 05:26:55 +02:00
Jan Lahoda
e81d3fa8c3
8226510: No compilation error when switch expression has no result expressions
...
Ensure a compile-time error is produced when there are no result expressions in an switch expression.
Reviewed-by: vromero
2019-06-27 10:39:27 +02:00
Jonathan Gibbons
454f9f9fd0
8225748: Use SHA-256 for javap classfile checksum
...
Reviewed-by: mchung
2019-06-18 11:52:57 -07:00
Jesper Wilhelmsson
dc82364e05
Merge
2019-06-18 22:48:27 +02:00
Joe Darcy
51cf24fcc0
8222369: ExecutableElement.getReceiverType returns null instead of NOTYPE
...
Reviewed-by: jjg
2019-06-13 16:39:20 -07:00
Joe Darcy
aeedfd44b0
8164819: Make javac's toString() on annotation objects consistent with core reflection
...
Reviewed-by: jjg, coleenp
2019-06-13 11:50:45 -07:00
Jan Lahoda
1dd6e7a3eb
8226522: No compilation error reported when yield is used in incorrect context
...
Reviewed-by: mcimadamore
2019-07-02 09:14:51 +02:00
Jan Lahoda
d9407ce428
8220018: javac crash when compiling try-catch-finally inside switch expression
...
Correcting handling of finally that yields from a switch expression.
Reviewed-by: mcimadamore, jlahoda
2019-06-12 13:49:43 +02:00
Joe Darcy
4750064828
8214546: Start of release updates for JDK 14
...
8214547: Add SourceVersion.RELEASE_14
8214548: Add source 14 and target 14 to javac
8214549: Bump maximum recognized class file version to 58 for JDK 14
Reviewed-by: jjg, mikael, erikj, jlahoda, dholmes
2019-06-11 16:45:20 -07:00
Jan Lahoda
b34b2d993c
8223305: Compiler support for Switch Expressions
...
Reviewed-by: mcimadamore, vromero
2019-06-10 05:09:52 +02:00
Jim Laskey
08e1ece107
8223967: Implement Text Blocks (Preview) in the Java compiler
...
Reviewed-by: vromero, jlahoda, abuckley
2019-06-06 12:24:44 -03:00
Vicente Romero
d69bc696f2
8223942: Missing methods in ClientCodeWrapper$WrappedJavaFileManager
...
Reviewed-by: jjg
2019-06-05 17:01:43 -04:00
Jonathan Gibbons
45f6ff3894
8223805: DocCommentParser should allow for <main> and </main>
...
Reviewed-by: hannesw
2019-06-04 11:29:29 -07:00
Joe Darcy
bcd13b790f
8224687: Add clarifying overrides of Element.asType to more specific subinterfaces
...
Reviewed-by: jjg
2019-05-30 16:21:08 -07:00
Jan Lahoda
0112514fde
8220702: compiling in the context of an automatic module disallows --add-modules ALL-MODULE-PATH
...
Allow --add-modules ALL-MODULE-PATH when compiling in the context of an automatic module.
Reviewed-by: jjg
2019-05-24 12:25:18 +02:00
Joe Darcy
4dd6b687ef
8224177: Harden annotation processing framework to irregular behavior from processors
...
Reviewed-by: jjg
2019-05-23 18:47:24 -07:00
Jan Lahoda
08193be19c
8224031: Cannot parse switch expressions after type cast
...
Correctly categorize parentheses followed by the switch keyword as cast.
Reviewed-by: mcimadamore
2019-05-16 16:42:14 +02:00
Jan Lahoda
b32a840e53
8222169: java.lang.AssertionError switch expression in ternary operator - ?
...
Ensure the stack size recoded at the begining of the let expression is the correct one.
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: vromero
2019-05-16 10:52:36 +02:00
Vicente Romero
23278fea38
8215470: Bad EnclosingMethod attribute on classes declared in lambdas
...
Reviewed-by: mcimadamore
2019-05-14 11:28:44 -04:00
Vicente Romero
40155b14cd
8222251: preflow visitor is not visiting lambda expressions
...
Reviewed-by: mcimadamore
2019-05-09 10:04:33 -04:00
Vicente Romero
c98fb7d64b
8222949: add condy support to javac's pool API
...
Reviewed-by: mcimadamore
2019-05-08 10:10:54 -04:00
Lance Andersen
5a4cef05d6
8218875: Add new FileSystems.newFileSystem methods
...
Reviewed-by: rriggs, alanb, clanger, dfuchs
2019-05-02 17:08:03 -04:00
Joe Darcy
75471b411d
8146726: Improve AbstractProcessor to issue warnings for repeated information
...
Reviewed-by: jjg, smarks, serb, igerasim
2019-05-01 16:47:26 -07:00
Steve Groeger
7c55d53d66
8218152: [javac] fails and exits with no error if a bad annotation processor provided
...
Handle exceptions thrown while loading annotation processors.
Reviewed-by: jlahoda
2019-04-30 10:39:22 +02:00
Maurizio Cimadamore
7b7f9a6fd3
8222289: Overhaul logic for reading/writing constant pool entries
...
Rewrite of Pool,ClassReader,ClassWriter to use shared pool helper components
Reviewed-by: vromero
2019-04-17 15:37:20 +01:00
Joe Darcy
4a9f7612be
8222430: Add tests for ElementKind predicates
...
Reviewed-by: jjg
2019-04-15 16:05:46 -07:00
Joe Darcy
7d29dd2172
8222378: Provide mechanism to query preview feature status for annotation processors
...
Reviewed-by: jjg
2019-04-15 15:44:42 -07:00
Martin Doerr
f2369e9748
8220625: tools/javac/classreader/8171132/BadConstantValue.java failed with "did not see expected error"
...
Reviewed-by: clanger
2019-04-15 10:16:04 +02:00
Jan Lahoda
28dd6d8496
8217047: Provide a way to inject missing parameter names
...
Adding a way to provide parameter names that are missing in the classfiles.
Reviewed-by: darcy, jjg
2019-04-11 17:55:18 +02:00
Jan Lahoda
ae5972a204
8215407: javac should reject class files with bad EnclosingMethod attributes
...
Reject classfiles with broken EnclosingMethod attribute.
Reviewed-by: jjg
2019-04-11 14:49:04 +02:00
Vicente Romero
2468ac91ee
8222035: minimal inference context optimization is forcing resolution with incomplete constraints
...
Reviewed-by: mcimadamore, cushon
2019-04-10 17:15:53 -04:00
Ron Shapiro
b6cdfa908f
8221118: Avoid eagerly creating JCDiagnostic for CompletionFailures
...
Reviewed-by: jjg, mcimadamore, forax
2019-03-29 07:38:34 -07:00
Liam Miller-Cushon
b0f6b1086a
8220632: Suggest recompiling with a larger value of -Xmaxerrs/-Xmaxwarns if diagnostics were suppressed
...
Reviewed-by: jjg
2019-03-26 16:09:33 -07:00
Jan Lahoda
4969d23b89
8221413: javac does not recognize variable assigned in switch expression as DA
...
Fixing definite assignment in presence of implicit throws clause in switch expressions over enums.
Reviewed-by: vromero
2019-03-28 10:32:05 +01:00
Liam Miller-Cushon
31f64932c3
8220687: Add StandardJavaFileManager.getJavaFileObjectsFromPaths overload
...
Reviewed-by: jjg
2019-03-26 15:00:02 -07:00
Christoph Langer
1a48fa0fb7
8200286: (testbug) MOptionTest test fails with java.lang.AssertionError: Classfiles too old!
...
Reviewed-by: stuefe, jjg
2019-03-22 08:56:30 +01:00
Jonathan Gibbons
d3242724c9
8220379: Fix doclint handling of headings
...
Reviewed-by: erikj, jlahoda
2019-03-14 11:39:00 -07:00
Liam Miller-Cushon
0720686823
8193277: SimpleFileObject inconsistency between getName and getShortName
...
Reviewed-by: jjg
2019-03-05 12:01:04 -08:00
Liam Miller-Cushon
ab3f5e3e15
8220634: SymLinkArchiveTest should handle not being able to create symlinks
...
Reviewed-by: jjg
2019-03-13 17:26:21 -07:00
Jan Lahoda
76c916516c
8217868: Crash for overlap between source path and patch module path
...
When analyzing implicit files, do not look for containing module, but rather use the already known one.
Reviewed-by: jjg
2019-03-04 10:19:35 +01:00
Christoph Langer
8bec32b02f
8219915: [TESTBUG] Fix test langtools/tools/javac/processing/model/completionfailure/SymbolsDontCumulate.java in Standalone mode
...
Reviewed-by: jlahoda
2019-03-01 10:15:04 +00:00
Joe Darcy
bf2d27c5a4
8219254: Update explicit uses of latest source/target in langtools tests to a property
...
8219256: Update javac diags tests to use properties
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Reviewed-by: jjg, jlahoda, darcy, iignatyev
2019-02-21 10:29:16 -08:00
Harold Seigel
dd7e50dc01
8214719: Deprecate -Xverify:none option
...
Deprecate -Xverify:none and -noverify and remove them from tests
Reviewed-by: dholmes, mikael
2019-02-20 13:21:36 -05:00
Jan Lahoda
68d32a9a8a
8217381: Incovenient errors reported when annotation processor generates source file and errors in the same round
...
When an annotation processor reports and error, defer reporting recoverable errors from the erroneous round to the last round, to avoid reporting errors that were resolved in the erroneous round.
Reviewed-by: jjg
2019-02-15 12:09:53 +01:00