105 Commits

Author SHA1 Message Date
Joe Darcy
72a35c899e 8237062: Refine JSR 269 API ahead of Java SE 14 MR
Reviewed-by: jlahoda
2020-01-14 10:25:22 -08:00
Pavel Rappo
911846b49b 8236435: Fix typos in javac area
Reviewed-by: jjg, mcimadamore
2019-12-24 09:38:41 +00:00
Jan Lahoda
ad5ea72286 8235541: Extend javax.lang.model to cover binding variables
Reviewed-by: darcy
2019-12-09 09:40:09 +01:00
Joe Darcy
df308ac680 8224630: ElementScannerN, N > 9 should scan type parameters
Reviewed-by: mcimadamore, erikj
2019-12-05 14:14:06 -08: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
c41e980320 8234078: Missing license headers in a few javac files
Reviewed-by: vromero
2019-12-02 10:58:15 +01:00
Joe Darcy
c64756158f 8233096: Update javax.lang.model for switch expressions
Reviewed-by: jjg, jlahoda
2019-11-13 15:16:45 -08: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
Joe Darcy
b6cc5abdf7 8230882: Use @index in javax.lang.model javadoc
Reviewed-by: jjg
2019-09-15 13:23:21 -07:00
Joe Darcy
a8ea6b279a 8230734: Remove default constructors from java.compiler
Reviewed-by: jjg
2019-09-11 16:06:09 -07:00
Joe Darcy
7004b3f3e7 8230626: Make UnknownFooException strings more informative
Reviewed-by: jjg, mr
2019-09-04 15:49:25 -07:00
Joe Darcy
f14e213524 8230337: Clarify intention of Elements.{getPackageOf, getModuleOf}
Reviewed-by: jjg
2019-08-30 11:26:48 -07: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
Joe Darcy
ac1a11dfc6 8225532: Update source enums to describe 12 and 13 language features
Reviewed-by: jjg
2019-06-10 15:53:35 -07:00
Jan Lahoda
b34b2d993c 8223305: Compiler support for Switch Expressions
Reviewed-by: mcimadamore, vromero
2019-06-10 05:09:52 +02:00
Joe Darcy
a073e354ce 8225465: Add @jls tags to receiver type methods
Reviewed-by: lancea, jjg
2019-06-06 17:48:06 -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
Jonathan Gibbons
ec83d0304e 8225077: fix references to broken link in java.compiler module
Reviewed-by: darcy, lancea
2019-05-30 13:45:48 -07:00
Joe Darcy
c2dbf46d2e 8224628: Note that type parameters are not visited by ElementScanners
Reviewed-by: jjg
2019-05-22 21:49:31 -07:00
Joe Darcy
6930e80c31 8224175: Fix inconsistencies in @jls and @jvms tags
Reviewed-by: jjg, rfield
2019-05-20 17:29:44 -07: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
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
Liam Miller-Cushon
31f64932c3 8220687: Add StandardJavaFileManager.getJavaFileObjectsFromPaths overload
Reviewed-by: jjg
2019-03-26 15:00:02 -07:00
Joe Darcy
6ee9a15441 8221264: Refactor and update SourceVersion.latestSupported
Reviewed-by: jjg, cushon, martin
2019-03-25 19:40:01 -07:00
Jonathan Gibbons
c1523225aa 8220249: fix headings in java.compiler
Reviewed-by: erikj, darcy
2019-03-14 15:30:16 -07:00
Joe Darcy
7325fc6351 8219805: Cross-link javax.lang.model.{type, element} packages to utility interfaces
Reviewed-by: vromero
2019-02-27 11:33:57 -08:00
Joe Darcy
5ad47c58a3 8208371: Provided supported mechanims to create a ModuleElement for an unnamed module
Reviewed-by: jjg
2019-01-11 09:57:15 -08:00
Joe Darcy
f68fd6a1c2 8216404: Elements.getPackageOf should handle modules
Reviewed-by: jlahoda
2019-01-10 10:34:30 -08:00
Jesper Wilhelmsson
67a5fc2529 Merge 2019-01-09 22:59:49 +01:00
Joe Darcy
ffb08ea636 8216335: Minor cleanups to javax.annotation.processing and javax.lang.model javadoc
Reviewed-by: vromero
2019-01-08 13:04:04 -08:00
Joe Darcy
b5f0eec3d8 8205626: Start of release updates for JDK 13
8205393: Add SourceVersion.RELEASE_13
8205394: Add source 13 and target 13 to javac
8205645: Bump maximum recognized class file version to 57 for JDK 13
8214825: Update preview language features for start of JDK 13

Reviewed-by: erikj, alanb, mchung, mcimadamore, dholmes, smarks, jjg
2018-12-13 19:06:11 +01:00
Joe Darcy
ee4f45eb70 8216322: Missing since information in deprecation of constructor visitors
Reviewed-by: vromero
2019-01-08 16:26:46 -08:00
Joe Darcy
24d201cb54 8213256: Clarify runtime vs compile time annotations for RoundEnvironment.getElementsAnnotatedWith(Class)
Reviewed-by: jjg, jlahoda
2018-11-02 18:49:10 -07:00
Joe Darcy
2517ca3937 8208200: Add missing periods to sentences in RoundEnvironment specs
Reviewed-by: jjg
2018-07-25 17:22:26 -07:00
Joe Darcy
a29cd6d430 8208201: Update SourceVersion.RELEASE_11 docs to mention var for lambda param
Reviewed-by: jjg
2018-07-25 12:54:58 -07:00
Joe Darcy
2363998598 8173606: Deprecate constructors of 7-era visitors
Reviewed-by: vromero, jjg
2018-07-11 08:24:39 -07:00
Joe Darcy
e56162b43d 8205615: Start of release updates for JDK 12
8205621: Increment JDK version for JDK 12
8193292: Add SourceVersion.RELEASE_12
8193290: Add source 12 and target 12 to javac
8205619: Bump maximum recognized class file version to 56 for JDK 12

Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Mikael Vidstedt <mikael.vidstedt@oracle.com>
Reviewed-by: alanb, smarks, jjg, mr, erikj, psandoz, dholmes
2018-06-27 21:01:12 -07:00
Jan Lahoda
78b7362c97 8193302: Javac AssertionError: typeSig ERROR on usage of @Generated
Importing from an invisible package whose name is a prefix of a visible package is not allowed.

Reviewed-by: vromero
2018-06-13 12:52:21 +02:00
Joe Darcy
e8fff78093 8202334: Update javax.lang.model.util visitors for 11
Reviewed-by: jjg
2018-05-01 17:19:18 -07:00
Lana Steuck
8f528fba93 Merge 2018-01-18 18:58:46 +00:00
Joe Darcy
abb2ba45ae 8191839: ModuleElement.DirectiveVisitor :: visit​() method behavior is deviating from the spec
Reviewed-by: jjg
2018-01-17 17:53:37 -08:00
Lana Steuck
aad1a3592c Merge 2018-01-16 22:24:20 +00:00
Jonathan Gibbons
5edc13c005 8151850: eliminate javax.tools.FileManagerUtils
Reviewed-by: vromero
2018-01-11 13:47:11 -08:00
Jonathan Gibbons
9927f9eab3 8194901: remove interim code from javax.tools.ToolProvider
Reviewed-by: mchung
2018-01-10 15:05:33 -08:00
Jonathan Gibbons
11f43713d5 8185986: redundant/obsolete overview.html pages
Reviewed-by: darcy
2018-01-09 17:03:39 -08:00
Joe Darcy
edd2c3b6ca 8187951: Update javax.lang.model.SourceVersion for "var" name
Reviewed-by: jjg, mcimadamore
2018-01-08 17:32:54 -08:00
Joe Darcy
691eb78732 8173382: Add -source 11 and -target 11 to javac
8193291: Add SourceVersion.RELEASE_11

Reviewed-by: jjg, erikj, psandoz
2017-12-18 18:51:40 -08:00
Joe Darcy
a05689a09f 8193489: Add information about local variable type inference to SourceVersion.RELEASE_10
Reviewed-by: sundar, mr
2017-12-13 19:48:03 -08:00
Joe Darcy
99332f8fe0 8193194: Update javax.lang.model.util visitors for 10
Reviewed-by: jjg
2017-12-08 11:05:42 -08:00
Joe Darcy
14a3a70439 8191234: TypeKindVisitor needs to handle modules
Reviewed-by: jjg
2017-11-27 18:00:56 -08:00