Commit graph

100 commits

Author SHA1 Message Date
Joe Darcy
4168faf54c 8341100: Add index entries for terms used in java.lang.Class
Reviewed-by: liach
2024-09-30 16:10:02 +00:00
Pavel Rappo
88cccc14db 8339631: Fix block @jls and @jvms tags
Reviewed-by: liach, darcy, jjg
2024-09-09 12:06:21 +00:00
Shaojin Wen
55312e1549 8338937: Optimize the string concatenation of ClassDesc
Reviewed-by: liach
2024-09-04 22:45:17 +00:00
Weijun Wang
c3226aaeb8 8334394: Race condition in Class::protectionDomain
Reviewed-by: liach, jpai, rriggs, alanb
2024-07-22 13:43:55 +00:00
Chen Liang
39f4476813 8334772: Change Class::signers to an explicit field
Reviewed-by: dholmes, alanb, rriggs, coleenp
2024-07-18 22:22:59 +00:00
Joe Darcy
4e58d8c897 8309821: Link to hidden classes section in Class specification for Class::isHidden
Reviewed-by: iris, rriggs
2024-06-19 23:23:52 +00:00
Chen Liang
8d2f9e57c3 8333749: Consolidate ConstantDesc conversion in java.base
Co-authored-by: Claes Redestad <redestad@openjdk.org>
Reviewed-by: redestad, jvernee
2024-06-08 13:05:36 +00:00
Joe Darcy
525063be90 8322878: Including sealing information Class.toGenericString()
Co-authored-by: Pavel Rappo <prappo@openjdk.org>
Reviewed-by: rriggs
2024-01-10 18:46:56 +00:00
Pavel Rappo
8f1d40b48b 8321114: Rename "Unnamed Classes" to "Implicitly Declared Classes" better
Reviewed-by: jlaskey
2023-12-01 11:51:25 +00:00
Jim Laskey
04ad98ed32 8315458: Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview)
Reviewed-by: jlahoda, mcimadamore, vromero, rriggs, alanb, mchung
2023-11-30 12:49:49 +00:00
Jorn Vernee
32ac72c3d3 8312522: Implementation of Foreign Function & Memory API
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: dholmes, psandoz, mcimadamore, alanb
2023-10-12 19:50:08 +00:00
Pavel Rappo
f39fc0aa2d 8314738: Remove all occurrences of and support for @revised
Reviewed-by: mr
2023-08-22 13:02:53 +00:00
Joe Darcy
19691fab48 6361826: (reflect) provide method for mapping strings to class object for primitive types
Reviewed-by: rriggs, mchung
2023-07-14 20:18:23 +00:00
Chen Liang
8c8e9d911d 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString
Reviewed-by: mchung
2023-06-30 23:37:53 +00:00
Chen Liang
2bd4136bdb 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect
Reviewed-by: mchung, darcy
2023-06-27 16:10:50 +00:00
Mandy Chung
7db2f08756 8310242: Clarify the name parameter to Class::forName
Reviewed-by: rriggs, liach, alanb, dholmes
2023-06-26 19:56:24 +00:00
Joe Darcy
0314292cb2 8310267: Javadoc for Class#isPrimitive() is incorrect regarding Class objects for primitives
Reviewed-by: prappo
2023-06-23 19:35:57 +00:00
Jim Laskey
98b53c06cf 8306112: Implementation of JEP 445: Unnamed Classes and Instance Main Methods (Preview)
8308613: javax.lang.model updates for JEP 445 (preview)
8308913: Update core reflection for JEP 445 (preview)

Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Joe Darcy <darcy@openjdk.org>
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Jim Laskey <jlaskey@openjdk.org>
Co-authored-by: Adam Sotona <asotona@openjdk.org>
Reviewed-by: mcimadamore, vromero, darcy
2023-06-05 18:45:39 +00:00
Joe Darcy
1b8e6bf31c 8308987: Update java.lang.Class to use javadoc snippets
Reviewed-by: alanb
2023-05-30 16:47:02 +00:00
Chen Liang
019fcd819c 8304139: Add <init> and <clinit> method constants to ConstantDescs
Reviewed-by: mchung
2023-03-21 16:16:08 +00:00
Joe Darcy
6fd1442123 8296743: Tighten Class.getModifiers spec for array classes
Reviewed-by: rriggs, mchung, heidinga
2022-11-18 21:51:55 +00:00
Adam Sotona
e802b124b7 8296196: Class.getEnumConstants() throws undocumented ClassCastException and NullPointerException
Reviewed-by: darcy
2022-11-10 06:20:57 +00:00
Joe Darcy
68af7c1365 8291734: Return accurate ACC_SUPER access flag for classes
Reviewed-by: mchung
2022-08-10 19:55:57 +00:00
Harold Seigel
a3040fcc2b 8291360: Create entry points to expose low-level class file information
Reviewed-by: dholmes, rriggs
2022-08-04 13:13:01 +00:00
Joe Darcy
de7467146f 8266670: Better modeling of access flags in core reflection
Reviewed-by: mchung, rriggs, asotona
2022-06-25 19:09:43 +00:00
Tim Prinzing
b92ce2699b 8281001: Class::forName(String) defaults to system class loader if the caller is null
Reviewed-by: mchung
2022-06-08 16:21:55 +00:00
Sergey Tsypanov
9073a98d57 8282701: Use Class.getInterfaces(false) where possible to reduce allocation pressure
Reviewed-by: redestad, mchung
2022-05-10 17:19:33 +00:00
Tim Prinzing
e8016f7443 8281006: Module::getResourceAsStream should check if the resource is open unconditionally when caller is null
Reviewed-by: alanb, erikj, mchung
2022-04-20 17:02:31 +00:00
XenoAmess
87faa85c59 8186958: Need method to create pre-sized HashMap
Reviewed-by: chegar, naoto, joehw, lancea, wetmore, smarks
2022-04-19 00:03:56 +00:00
Joe Darcy
4c7f8b49a4 8268250: Class.arrayType() for a 255-d array throws undocumented IllegalArgumentException
Reviewed-by: sundar, alanb
2022-02-17 17:12:40 +00:00
Joe Darcy
5ec7898dbf 8281671: Class.getCanonicalName spec should explicitly cover array classes
Reviewed-by: mchung
2022-02-16 22:02:55 +00:00
Pavel Rappo
f180530935 8279918: Fix various doc typos
Reviewed-by: kevinw, lancea, mullan, sspitsyn, naoto, jlahoda, azvegint, egahlin, jjg
2022-01-14 16:10:14 +00:00
Joe Darcy
517967284c 8278953: Clarify Class.getDeclaredConstructor specification
Reviewed-by: mchung, alanb
2021-12-21 00:25:56 +00:00
liach
905b763942 8261404: Class.getReflectionFactory() is not thread-safe
Reviewed-by: rriggs, mchung
2021-12-17 22:23:33 +00:00
Mandy Chung
c6339cb8a2 8271820: Implementation of JEP 416: Reimplement Core Reflection with Method Handle
8013527: calling MethodHandles.lookup on itself leads to errors

Co-authored-by: Peter Levart <plevart@openjdk.org>
Co-authored-by: Claes Redestad <redestad@openjdk.org>
Co-authored-by: Mandy Chung <mchung@openjdk.org>
Reviewed-by: mcimadamore, plevart, egahlin, redestad, cjplummer, alanb
2021-10-28 18:32:50 +00:00
Claes Redestad
e621cffa4f 8271627: Use local field access in favor of Class.getClassLoader0
Reviewed-by: mchung
2021-08-02 22:37:56 +00:00
Sergey Tsypanov
6c4c48faea 8266972: Use String.concat() in j.l.Class where invokedynamic-based String concatenation is not available
Reviewed-by: redestad
2021-08-02 12:47:09 +00:00
Weijun Wang
6765f90250 8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
2021-06-02 11:57:31 +00:00
Сергей Цыпанов
ae258f1e6a 8265418: Clean-up redundant null-checks of Class.getPackageName()
Reviewed-by: redestad
2021-05-27 20:21:34 +00:00
Vicente Romero
0fa9223f34 8260517: implement Sealed Classes as a standard feature in Java
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Reviewed-by: dholmes, mcimadamore, jlahoda
2021-05-20 09:11:08 +00:00
Сергей Цыпанов
ebcf3991b7 8266622: Optimize Class.descriptorString() and Class.getCanonicalName0()
Reviewed-by: redestad
2021-05-14 12:29:23 +00:00
Tagir F. Valeev
3e667cc405 8265356: need code example for getting canonical constructor of a Record
Reviewed-by: smarks
2021-05-01 07:30:55 +00:00
Joe Darcy
80026d81a4 8265174: Update Class.getDeclaredMethods to discuss synthetic and bridge methods
Reviewed-by: jfranck
2021-04-14 16:15:54 +00:00
Joe Darcy
99b39aadbd 8262807: Note assumptions of core reflection modeling and parameter handling
Reviewed-by: rriggs
2021-03-17 21:58:48 +00:00
Joe Darcy
26234b5333 8254979: Class.getSimpleName() returns non-empty for lambda and method
Reviewed-by: rriggs, mchung
2021-03-17 20:24:51 +00:00
Joe Darcy
acda812958 8263333: Improve links from core reflection to JLS and JVMS
Reviewed-by: jfranck
2021-03-10 17:45:54 +00:00
Claes Redestad
2f893c2b83 8260337: Optimize ImageReader lookup, used by Class.getResource
Reviewed-by: jlaskey, sundar
2021-02-09 15:32:36 +00:00
Jan Lahoda
235488215b 8250768: javac should be adapted to changes in JEP 12
Reviewed-by: mcimadamore, erikj, jjg, ihse
2021-01-11 10:10:47 +00:00
Julia Boes
952dc70402 8257636: Update usage of "type" terminology in java.lang.Class and java.lang.reflect
Reviewed-by: darcy
2020-12-17 11:32:58 +00:00
Mandy Chung
2001da3dd4 8257596: Clarify trusted final fields for record classes
Reviewed-by: hseigel, chegar, psandoz
2020-12-11 22:44:48 +00:00