46 Commits

Author SHA1 Message Date
Chris Hegarty
cdb41ba1d0 8255904: Remove superfluous use of reflection in Class::isRecord
Reviewed-by: redestad, alanb
2020-11-25 09:00:30 +00:00
Pavel Rappo
c5462bb95d 8255989: Remove explicitly unascribed authorship from Java source files
Reviewed-by: redestad, mr, mchung, iris, serb
2020-11-07 12:11:43 +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
Jonathan Gibbons
0aa3c92577 8255262: Remove use of legacy custom @spec tag
Reviewed-by: lancea, mr, iris, alanb, darcy, mchung
2020-10-22 19:42:01 +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
Philippe Marschall
2a406f3ce5 8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
2020-09-30 20:05:07 +00:00
Mark Reinhold
55039aa1c6 8249205: Remove unnecessary trademark symbols
Reviewed-by: darcy, lancea, bpb, prr, jjg, cjplummer, iris, dfuchs, weijun, joehw, wetmore, bchristi
2020-07-15 14:21:54 -07:00
Vicente Romero
dee90e4736 8246098: API for Class::permittedSubclasses should clarify if returned elements are ordered or not
Reviewed-by: chegar
2020-06-16 17:25:02 -04: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
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
Joe Darcy
455d2e7cea 8225540: In core reflection note whether returned annotations are declaration or type annotations
Reviewed-by: alanb, prappo
2020-04-09 14:16:17 -07:00
Pavel Rappo
4c4271f283 8242230: Whitespace typos, relaxed javadoc, formatting
Reviewed-by: darcy, igerasim
2020-04-08 11:16:56 +01:00
Mandy Chung
5700a934bb 8241964: Clean up java.lang.Class javadoc
Reviewed-by: darcy
2020-03-31 19:18:16 -07:00
Joe Darcy
98e6be7cc2 8241789: Make citations of JLS and JVMS consistent in java.lang.Class
Reviewed-by: jjg
2020-03-28 13:01:26 -07:00
Joe Darcy
683a5b1197 8237805: Use inline @jls @jvms in core libs where appropriate
Reviewed-by: xiaofeya, dfuchs, prappo
2020-02-13 10:37:37 -08:00
Joe Darcy
78df4d412e 8236877: Add "record" to descriptions in java.lang.{annotation, reflect}
Reviewed-by: mchung, lancea, chegar
2020-01-10 09:15:20 -08:00
Chris Hegarty
eec0e71c04 8235550: Clarify record reflective support specification
Reviewed-by: mcimadamore
2019-12-10 19:12:57 +00:00
Harold Seigel
b8dbdd1232 8235359: Simplify method Class.getRecordComponents()
Change getRecordComponents0() to return an array of RecordComponent's so no conversion is needed

Reviewed-by: lfoltan, chegar, fparain, vromero, mchung
2019-12-06 13:05:25 +00:00
Joe Darcy
81ec9e3087 8235369: Class.toGenericString need to be updated for records
Reviewed-by: vromero, mchung, chegar
2019-12-05 14:19:35 -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
Joe Darcy
deb0c481e7 8234917: Explicitly discuss java.lang.Enum in Class.isEnum spec
Reviewed-by: jjg
2019-11-27 10:23:40 -08:00
Brent Christian
469cb2b334 8233272: The Class.forName specification should be updated to match the long-standing implementation with respect to class linking
Reviewed-by: dholmes, mchung
2019-11-19 10:02:46 -08:00
Brent Christian
3561b4ed50 8233091: Backout JDK-8212117: Class.forName loads a class but not linked if class is not initialized
Reviewed-by: alanb, dholmes, mchung
2019-11-04 11:42:24 -08:00
Julia Boes
b15b322cf3 8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base

Reviewed-by: prappo, lancea
2019-09-20 11:07:52 +01:00
Brent Christian
a4613d4a8f 8212117: Class.forName may return a reference to a loaded but not linked Class
Reviewed-by: dholmes, mchung
2019-09-09 11:04:04 -07:00
Joe Darcy
9d764ee48e 8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
2019-08-29 16:31:34 -07:00
Joe Darcy
86adc981f1 8227202: clarify Class.isEnum() doc
Reviewed-by: bpb
2019-07-03 16:29:20 -07:00
Joe Darcy
d3dd56d3b2 7086604: (reflect) Clarifications to javadoc for getGeneric*Type methods in j.l.r
Reviewed-by: lancea, abuckley
2019-06-11 17:20:51 -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
Sergei Tsypanov
9d979eaf56 8222151: refactoring: enhancements to java.lang.Class::methodToString and java.lang.Class::getTypeName
Reviewed-by: darcy
2019-04-11 22:56:11 -04:00
Joe Darcy
38cf9d76c8 8217000: Refactor Class::methodToString
Reviewed-by: smarks
2019-01-15 19:10:40 -08:00
Jesper Wilhelmsson
528bc73ca4 Merge 2019-01-14 23:05:26 +01:00
Joe Darcy
01547499e7 8213299: runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java failed with java.lang.NoSuchMethodException
Reviewed-by: dholmes
2019-01-11 08:32:44 -08:00
Aleksey Shipilev
f44e59355c 8216302: StackTraceElement::fill_in can use cached Class.name
Reviewed-by: coleenp, dholmes, mchung
2019-01-09 20:28:16 +01:00
Vicente Romero
9846588b31 8210031: implementation for JVM Constants API
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: jrose, mcimadamore, darcy, mchung, rriggs, dholmes, forax
2018-12-09 12:36:24 -05:00
Joe Darcy
7a350b9474 6304578: (reflect) toGenericString fails to print bounds of type variables on generic methods
Reviewed-by: vromero, plevart, briangoetz, mcimadamore
2018-11-01 20:37:45 -07:00
Mandy Chung
5e6d6b8642 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Reviewed-by: dholmes, thartmann
2018-10-22 17:00:04 -07:00
Jonathan Gibbons
81721a4b5f 8211876: Broken links in java.base files (ClassLoader.html#name)
Reviewed-by: lancea
2018-10-22 13:31:42 -07:00
Mandy Chung
46f0fa8c20 8206240: java.lang.Class.newInstance() is causing caller to leak
Reviewed-by: alanb
2018-10-04 13:02:58 -07: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
Joe Darcy
01faebf8eb 8205003: Replace selected link tags with linkplain in java.lang.Class
Reviewed-by: bpb, mchung, lancea
2018-06-14 09:31:59 -07:00
Claes Redestad
d1cf230fc1 8187123: (reflect) Class#getCanonicalName and Class#getSimpleName is a part of performance issue
Reviewed-by: psandoz, dholmes, mchung
2018-05-04 09:29:14 +02:00
Ivan Gerasimov
277ac7e034 8200696: Optimal initial capacity of java.lang.Class.enumConstantDirectory
Reviewed-by: dholmes, redestad
2018-04-04 14:09:31 -07:00
Paul Sandoz
3e26f1114d 8186961: Class.getFields() does not return fields of previously visited super interfaces/classes
Reviewed-by: mchung, redestad
2017-12-01 17:06:09 -08:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00