1099 Commits

Author SHA1 Message Date
Mandy Chung
d7b9416406 8199149: Improve the exception message thrown by VarHandle of unsupported operation
Reviewed-by: liach, jvernee
2023-07-20 20:21:32 +00:00
Chen Liang
5d57b5c2f0 6983726: Reimplement MethodHandleProxies.asInterfaceInstance
Co-authored-by: Mandy Chung <mchung@openjdk.org>
Reviewed-by: jvernee, mchung
2023-07-20 00:59:28 +00:00
Joe Darcy
e5ecbff69e 8312203: Improve specification of Array.newInstance
Reviewed-by: bpb, mchung
2023-07-18 22:40:12 +00:00
Mandy Chung
b4dce0d624 8310814: Clarify the targetName parameter of Lookup::findClass
Reviewed-by: liach, rriggs, bchristi
2023-07-18 16:07:35 +00:00
Chen Liang
201e3bcf52 8291065: Creating a VarHandle for a static field triggers class initialization
Reviewed-by: mchung, psandoz
2023-07-18 00:58:25 +00:00
Jorn Vernee
69a46c25cc 8310157: Allow void-returning filters for MethodHandles::collectCoordinates
Reviewed-by: mcimadamore
2023-07-17 14:53:37 +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
Maurizio Cimadamore
6569b252b9 8311593: Minor doc issue in MemorySegment::copy
Reviewed-by: jvernee
2023-07-10 15:04:21 +00:00
Alan Bateman
623cfcd04b 8310892: ScopedValue throwing StructureViolationException should be clearer
Reviewed-by: dfuchs, jpai
2023-07-10 12:33:29 +00:00
Pavel Rappo
2cffef2120 8311290: Improve java.lang.ref.Cleaner rendered documentation
Reviewed-by: rriggs
2023-07-05 14:10:44 +00:00
Pavel Rappo
7b3c2dc5f4 8311122: Fix typos in java.base
Reviewed-by: darcy, naoto, mchung, iris, mli, mullan
2023-07-04 19:03:09 +00:00
Mandy Chung
b9198f9931 8254566: Clarify the spec of ClassLoader::getClassLoadingLock for non-parallel capable loader
Reviewed-by: dholmes, darcy
2023-07-03 16:04:35 +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
Joe Darcy
d97966266e 8311115: Type in java.lang.reflect.AccessFlag.METHOD_PARAMETER
Reviewed-by: bpb, jlaskey, mchung
2023-06-29 20:31:57 +00:00
shaojin.wensj
20f7d05ef2 8310502: Optimization for j.l.Long.fastUUID()
Reviewed-by: liach, alanb
2023-06-29 13:37:32 +00:00
Jorn Vernee
7fffdb5e60 8310405: Linker.Option.firstVariadicArg should specify which index values are valid
Reviewed-by: mcimadamore
2023-06-28 17:32:33 +00:00
Joe Darcy
4bce38c6d7 8310830: typo in the parameter name in @throws of ClassDesc::ofDescriptor
Reviewed-by: bpb, rriggs, mchung
2023-06-27 19:30:59 +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
Brian Burkhalter
58bb6555e7 8222329: Readable read(CharBuffer) does not specify that 0 is returned when there is no remaining space in buffer
Reviewed-by: rriggs, lancea, alanb
2023-06-27 15:28:01 +00:00
Adam Sotona
990e3a700d 8308899: Introduce Classfile context and improve Classfile options
8306650: Improve control of stack maps generation in Classfile API
8308646: Typo in ConstantValueAttribute

Reviewed-by: mcimadamore
2023-06-27 05:05:17 +00:00
Chen Liang
a197ee797b 8310838: Correct range notations in MethodTypeDesc specification
Reviewed-by: mchung
2023-06-26 22:07:35 +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
Jaikiran Pai
013367b483 8310868: Thread.interrupt() method's javadoc has an incorrect {@link}
Reviewed-by: alanb
2023-06-26 06:25:08 +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
Joe Darcy
0e4fde3d30 8310453: Update javadoc of java.lang.Object
Reviewed-by: rriggs, alanb
2023-06-22 16:38:39 +00:00
Per Minborg
5a30fb6664 8310591: Missing @since tags in java.lang.foreign
Reviewed-by: mcimadamore
2023-06-22 11:59:33 +00:00
Jorn Vernee
e022e87654 8310053: VarHandle and slice handle derived from layout are lacking alignment check
Reviewed-by: mcimadamore
2023-06-21 00:03:13 +00:00
Andrew Haley
44a8aa0691 8308609: java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations"
Reviewed-by: alanb
2023-06-16 12:21:11 +00:00
Per Minborg
b412fc79c3 8309937: Add @sealedGraph for some Panama FFM interfaces
Reviewed-by: mcimadamore
2023-06-16 11:42:55 +00:00
Alan Bateman
227656f3a9 8309408: Thread.sleep cleanup
Reviewed-by: dholmes, stefank
2023-06-16 07:26:27 +00:00
Chen Liang
75dcc4ef94 8307508: IndirectVarHandle.isAccessModeSupported throws NPE
Reviewed-by: mchung
2023-06-13 17:05:52 +00:00
Per Minborg
f7de726bd3 8295555: Primitive wrapper caches could be @Stable
Reviewed-by: rriggs
2023-06-13 08:39:00 +00:00
Maurizio Cimadamore
a6ad42e00e 8308645: Javadoc of FFM API needs to be refreshed
8309398: ValueLayout:: arrayElementVarHandle doesn't throws UnsupportedOperationException - if byteAlignment() > byteSize()
8308812: SequenceLayout::withElementCount(long elementCount) doesn't throw IllegalArgumentException - if elementCount < 0 for some cases

Reviewed-by: jvernee
2023-06-12 15:55:49 +00:00
Alan Bateman
97df6cf55a 8309545: Thread.interrupted from virtual thread needlessly resets interrupt status
Reviewed-by: rpressler, dholmes, jpai
2023-06-09 07:30:03 +00:00
Alan Bateman
b2a5271e74 8309196: Remove Thread.countStackFrames
Reviewed-by: rriggs, mchung, dholmes, jpai, iris
2023-06-08 17:28:04 +00:00
Joe Darcy
5a706fb403 8306584: Start of release updates for JDK 22
8306585: Add SourceVersion.RELEASE_22
8306586: Add source 22 and target 22 to javac

Reviewed-by: erikj, iris, dholmes, jlahoda, alanb
2023-06-08 16:02:21 +00:00
Jorn Vernee
fa791119f0 8308031: Linkers should reject unpromoted variadic parameters
Reviewed-by: mcimadamore
2023-06-07 12:14:55 +00:00
Alan Bateman
f1c7afcc3f 8306647: Implementation of Structured Concurrency (Preview)
8306572: Implementation of Scoped Values (Preview)

Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Andrew Haley <aph@openjdk.org>
Reviewed-by: psandoz, dfuchs, mchung
2023-06-07 06:41:09 +00:00
Joe Darcy
d82436e4e3 8295071: Spec Clarification : ClassFileFormatVersion: System property java.class.version | Java class format version number
Reviewed-by: iris, alanb, rriggs
2023-06-06 18:33:42 +00:00
Mandy Chung
74dc50b7f0 8301721: lookup.findSpecial fails on Object method call from interface
Reviewed-by: alanb
2023-06-06 16:19:46 +00:00
Chen Liang
38cef2adbd 8309413: Improve the performance of MethodTypeDesc::descriptorString
8304932: MethodTypeDescImpl can be mutated by argument passed to MethodTypeDesc.of

Reviewed-by: mchung
2023-06-06 15:56:36 +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
Jan Lahoda
9be5769a68 8291966: SwitchBootstrap.typeSwitch could be faster
Reviewed-by: asotona
2023-06-05 10:48:25 +00:00
Chen Liang
be36096a19 8302822: Method/Field/Constructor/RecordComponent::getGenericInfo() is not thread safe
Reviewed-by: stsypanov, redestad
2023-06-01 15:31:51 +00:00
Chen Liang
78aa5f3fc1 8299505: findVirtual on array classes incorrectly restricts the receiver type
Reviewed-by: mchung
2023-05-31 16:28:26 +00:00
Mandy Chung
de7fd1c306 8307944: ClassFileDumper should only load java.nio.file.Path if enabled
Reviewed-by: rriggs
2023-05-30 21:01:12 +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
Maurizio Cimadamore
534de6d8ae 8300491: SymbolLookup::libraryLookup accepts strings with terminators
Reviewed-by: psandoz
2023-05-25 15:22:27 +00:00
Jim Laskey
b44fa365ca 8308040: Evaluate new public types in non-public classes
Reviewed-by: rriggs, darcy
2023-05-24 19:08:39 +00:00
Chen Liang
8ffa264cf0 8306698: Add overloads to MethodTypeDesc::of
Reviewed-by: mchung
2023-05-23 21:26:25 +00:00