Commit graph

53 commits

Author SHA1 Message Date
Rafael Winterhalter
1d070a3238 8337302: Undefined type variable results in null
Reviewed-by: liach
2024-09-18 12:33:56 +00:00
Joe Darcy
1797efd68d 8322218: Better escaping of single and double quotes in annotation toString() results
Reviewed-by: mchung
2024-02-06 23:22:46 +00:00
Andrey Turbanov
68815d54c1 8314734: Remove unused field TypeVariableImpl.EMPTY_ANNOTATION_ARRAY
Reviewed-by: bpb, darcy
2023-08-23 20:41:28 +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
Pavel Rappo
f6133edb08 8310890: Normalize identifier names
Reviewed-by: naoto, rriggs
2023-06-27 15:47:29 +00:00
Chen Liang
adf62febe6 8304918: Remove unused decl field from AnnotatedType implementations
Reviewed-by: stsypanov, darcy
2023-04-25 23:24:08 +00:00
Doug Simon
48fd4f2bd3 8303431: [JVMCI] libgraal annotation API
Reviewed-by: kvn, never, darcy
2023-04-19 16:01:57 +00:00
Joe Darcy
aaa897148a 8288227: Refactor annotation implementation to use pattern matching for instanceof
Reviewed-by: alanb
2022-06-10 17:05:17 +00:00
Andrey Turbanov
4587337e95 8286858: Remove dead code in sun.reflect.misc.MethodUtil
Reviewed-by: mchung, iris
2022-05-20 09:09:05 +00:00
Joe Darcy
e6c5f2886c 8280594: Refactor annotation invocation handler handling to use Objects.toIdentityString
Reviewed-by: bpb
2022-04-20 16:20:36 +00:00
Joe Darcy
ee0743801e 8277672: Better invocation handler handling
Reviewed-by: skoivu, mchung, rhalade
2022-04-19 22:18:33 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
Claes Redestad
a385142398 8177107: Reduce memory footprint of java.lang.reflect.Constructor/Method
Reviewed-by: darcy, shade, coleenp
2022-04-06 14:26:58 +00:00
Joe Darcy
c3179a8760 8281462: Annotation toString output for enum not reusable for source input
Reviewed-by: mchung
2022-02-11 23:24:08 +00:00
Vicente Romero
2eab86b513 8213905: reflection not working for type annotations applied to exception types in the inner class constructor
Reviewed-by: jlahoda
2022-01-26 00:33:10 +00:00
Rafael Winterhalter
51f3427e9b 8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException
Reviewed-by: darcy, jfranck
2021-06-14 08:24:24 +00:00
Rafael Winterhalter
09243822eb 8266766: Arrays of types that cannot be an annotation member do not yield exceptions
Reviewed-by: darcy, jfranck
2021-06-10 12:02:53 +00:00
Rafael Winterhalter
7b1e4024c0 8266598: Exception values for AnnotationTypeMismatchException are not always informative
Reviewed-by: jfranck
2021-06-09 13:21:32 +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
Sergey Tsypanov
c06db45fa7 8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.privateCheckPackageAccess()
Reviewed-by: alanb, mchung
2021-05-31 16:58:38 +00:00
Сергей Цыпанов
ae258f1e6a 8265418: Clean-up redundant null-checks of Class.getPackageName()
Reviewed-by: redestad
2021-05-27 20:21:34 +00:00
Harold Seigel
e14b026841 8243287: Removal of Unsafe::defineAnonymousClass
Reviewed-by: iklam, mchung, alanb, dholmes
2021-05-13 12:46:54 +00:00
Joe Darcy
8758b554a0 8265591: Remove vestiages of intermediate JSR 175 annotation format
Reviewed-by: jfranck
2021-04-22 16:21:54 +00:00
Rafael Winterhalter
f47faf283b 8228988: AnnotationParser throws NullPointerException on incompatible member type
Reviewed-by: darcy
2021-04-20 21:33:19 +00:00
Joe Darcy
66d9961cbd 8205502: Make exception message from AnnotationInvocationHandler more informative
Reviewed-by: bpb, naoto, iris
2021-04-01 23:13:19 +00:00
Joe Darcy
328e9514a8 8169629: Annotations with lambda expressions cause AnnotationFormatError
Reviewed-by: jfranck
2021-04-01 16:46:32 +00:00
Andrey Turbanov
fbbd98ba53 8264029: Replace uses of StringBuffer with StringBuilder in java.base
Reviewed-by: shade
2021-03-29 13:31:25 +00:00
Mandy Chung
56b15fbbcc 8159746: (proxy) Support for default methods
Co-authored-by: Peter Levart <plevart@openjdk.org>
Reviewed-by: darcy, alanb, plevart
2020-12-01 17:23:07 +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
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
Rafael Winterhalter
53a4ef2670 8202473: A type variable with multiple bounds does not correctly place type annotation
Reviewed-by: jfranck
2020-09-17 07:26:49 +00:00
Vipin Sharma
d4626d89cc 8251542: Several small Javadoc errors in java.base
Fixing wrong exception type in throws clause and wrong return type description

Reviewed-by: darcy, dfuchs, mullan, mchung, rriggs
2020-08-25 09:27:36 +01:00
Vicente Romero
c190193eac 8246804: Incorrect copyright header in TypeAnnotationParser.java
Reviewed-by: darcy, psandoz
2020-08-17 17:33:51 -04:00
Christoph Dreis
08b90285b2 8242208: Use Method.getParameterCount where applicable
Reviewed-by: redestad, chegar
2020-04-06 13:46:09 +02:00
Ivan Gerasimov
b0e1ee4b3b 8241727: Typos: empty lines in javadoc, inconsistent indents, etc. (core-libs only)
Reviewed-by: prappo
2020-03-28 21:07:55 -07:00
Rafael Winterhalter
9d7f8bc9a0 8202469: (ann) Type annotations on type variable bounds that are also type variables are lost
Reviewed-by: jfranck
2020-03-18 17:07:42 -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
Joe Darcy
3c9b6d8554 8231202: Suppress warnings on non-serializable non-transient instance fields in serializable classes
Reviewed-by: rriggs, chegar
2019-10-09 10:17:50 -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
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
c569ad302a 8042748: Clarify exception thrown by ParameterizedTypeImpl.validateConstructorArguments()
Reviewed-by: lancea
2019-06-09 15:48:57 -07:00
Joe Darcy
bc10b6aaff 8224012: AnnotatedType implementations of hashCode() lead to StackOverflowError
Reviewed-by: jfranck
2019-05-29 09:53:28 -07:00
Liam Miller-Cushon
1cd847d6d1 8198526: getAnnotatedOwnerType does not handle static nested classes correctly
Reviewed-by: jfranck
2018-12-07 16:56:53 -08:00
Mandy Chung
9ffe7e1205 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
2018-11-06 10:01:16 -08:00
Joe Darcy
7e19a09742 8212081: AnnotatedType.toString implementation don't print annotations on embedded types
Reviewed-by: jfranck, wmdietl
2018-10-29 11:31:25 -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
Joe Darcy
ab0128ca51 8058202: AnnotatedType implementations don't override toString(), equals(), hashCode()
Reviewed-by: jfranck
2018-10-10 10:28:33 -07:00
Liam Miller-Cushon
296aa1cbc6 8198669: Refactor annotation array value parsing to reduce duplication
Reviewed-by: psandoz, darcy
2018-06-18 18:49:34 -07:00
Liam Miller-Cushon
b61c993004 7183985: (ann) Class.getAnnotation() throws an ArrayStoreException when the annotation class not present
Reviewed-by: darcy, martin, vromero
2018-06-14 17:32:31 -07:00