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
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
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
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
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
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
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
Vicente Romero
9efdaacc31
8242478: compiler implementation for records (Second Preview)
...
Reviewed-by: mcimadamore, jlahoda, darcy
2020-05-17 11:09:52 -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
Mikael Vidstedt
3318314c7c
8237589: Fix copyright header formatting
...
Reviewed-by: jjg, serb, iris, jwilhelm
2020-01-21 14:23:01 -08:00
Jan Lahoda
ad5ea72286
8235541: Extend javax.lang.model to cover binding variables
...
Reviewed-by: darcy
2019-12-09 09:40:09 +01: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
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
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
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
f14e213524
8230337: Clarify intention of Elements.{getPackageOf, getModuleOf}
...
Reviewed-by: jjg
2019-08-30 11:26:48 -07: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
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
Joe Darcy
4dd6b687ef
8224177: Harden annotation processing framework to irregular behavior from processors
...
Reviewed-by: jjg
2019-05-23 18:47:24 -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
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
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
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
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
Jan Lahoda
c963d543d2
8209055: c.s.t.javac.code.DeferredCompletionFailureHandler seems to use WeakHashMap incorrectly
...
Do not keep speculative Symbols in DeferredCompletionFailureHandler.
Reviewed-by: jjg, vromero
2018-11-12 09:35:23 +00:00
Jan Lahoda
fdb010502b
8213103: RoundEnvironment.getElementsAnnotatedWith(Class) crashes with -source 8
...
Correct handling of missing annotation with -source 8.
Reviewed-by: darcy, jjg, vromero
2018-11-05 10:31:47 +01:00
Joe Darcy
34397c4914
8212718: Refactor some annotation processor tests to better use collections
...
Reviewed-by: jlaskey, vromero
2018-10-23 10:32:39 -07:00
Liam Miller-Cushon
8b3c1810d2
8193037: package-info annotations are not reported when annotation processing is enabled
...
Reviewed-by: jjg
2018-09-13 15:29:44 -07:00
Joe Darcy
ac5685e827
8190886: package-info handling in RoundEnvironment.getElementsAnnotatedWith
...
Reviewed-by: vromero, jlahoda
2018-07-25 12:32:59 -07:00
Joe Darcy
fafd1b7536
8193462: Fix Filer handling of package-info initial elements
...
Reviewed-by: vromero
2018-07-18 00:23:06 -07:00
Joe Darcy
19c364592c
8193214: Incorrect annotations.without.processors warnings with JDK 9
...
Reviewed-by: vromero
2018-07-18 00:16:37 -07:00
Joe Darcy
90518f0635
8028563: Remove javac support for 6/1.6 source and target values
...
Reviewed-by: jjg, erikj, henryjen
2018-07-12 14:13:15 -07:00
Jesper Wilhelmsson
dafb3af62d
Merge
2018-07-11 21:41:43 +02:00
Joe Darcy
03597d010c
8206439: Remove javac -source/-target 6 from langtools regression tests
...
Reviewed-by: mcimadamore
2018-07-06 10:28:56 -07:00
Liam Miller-Cushon
1fc1f68c3d
8204630: Generating an anonymous class with Filer#createClassFile causes an NPE in JavacProcessingEnvironment
...
Reviewed-by: jlahoda
2018-07-06 12:10:43 -07:00
Jan Lahoda
2183a72fe3
8195986: Incorrect javac -h output with annotation processing and missing classes
...
When clearing out symbols for a new annotation processing round, preserve types when possible.
Reviewed-by: vromero
2018-06-28 10:05:39 +02:00
David Holmes
95bf19563b
8010319: Implementation of JEP 181: Nest-Based Access Control
...
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Maurizio Mimadamore <maurizio.mimadamore@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Tobias Hartmann <tobias.hartmann@oracle.com>
Co-authored-by: Vlaidmir Ivanov <vladimir.x.ivanov@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: John Rose <john.r.rose@oracle.com>
Co-authored-by: Daniel Smith <daniel.smith@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Kumar Srinivasan <kumardotsrinivasan@gmail.com>
Co-authored-by: Boris Ulasevich <boris.ulasevich@bell-sw.com>
Reviewed-by: alanb, psandoz, mchung, coleenp, acorn, mcimadamore, forax, jlahoda, sspitsyn, abuckley
2018-06-23 01:32:41 -04:00
Jan Lahoda
51c3a9d4d1
8195077: [Testbug] tools/javac/processing/model/completionfailure/NoAbortForBadClassFile.java - AccessDeniedException
...
Use a new working directory for each sub-test.
Reviewed-by: vromero
2018-06-22 11:26:55 +02:00
Jan Lahoda
5bff39c04f
8196519: Incomplete classpath causes infinite recursion in Resolve.isAccessible
...
ErrorType.getEnclosingType returns noType rather than self.
Reviewed-by: mcimadamore, cushon
2018-03-26 11:42:17 +02:00
Jan Lahoda
b0b8a51be1
8187950: javax.lang.model APIs throws CompletionFailure or a subtype of CompletionFailure
...
Catching CompletionFailures that would be thrown to API clients, and re-completing the symbols again when javac itself needs it.
Reviewed-by: cushon, jjg
2018-03-09 09:42:10 +01:00
Jonathan Gibbons
62ec6e6d1d
8186688: javax.lang.model.util.Elements.hides does not work correctly with interfaces
...
Reviewed-by: vromero, mcimadamore
2018-02-23 13:42:04 -08:00
Lance Andersen
987c3a2d87
8190378: Removal of CORBA and Java EE modules
...
Reviewed-by: rriggs, alanb, mchung, erikj, goetz
2018-02-10 07:06:16 -05:00
Joe Darcy
69287b5b99
8196551: Update TestSourceVersion.java to be robust across version changes
...
Reviewed-by: vromero
2018-02-01 09:16:03 -08:00
Lana Steuck
aad1a3592c
Merge
2018-01-16 22:24:20 +00:00
Lana Steuck
c8c8cd7238
Merge
2018-01-04 04:22:28 +00:00