RFR: 8336275: Move common Method and Constructor fields to Executable [v2]

Chen Liang liach at openjdk.org
Wed Jul 17 03:03:23 UTC 2024


On Tue, 16 Jul 2024 22:41:40 GMT, Chen Liang <liach at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/reflect/Executable.java line 54:
>> 
>>> 52: public abstract sealed class Executable extends AccessibleObject
>>> 53:     implements Member, GenericDeclaration permits Constructor, Method {
>>> 54:     // fields injected by hotspot
>> 
>> If a field is listed here then it is NOT injected by hotspot.
>
> What would be the terminology for a final field that's set by hotspot, against the regular java constrcutor rules?

I have chosen the wording "all final fields are used by the VM"

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20188#discussion_r1680341545


More information about the core-libs-dev mailing list