-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Verifier] Fix the field access issue with putfield/getfield #18440
[Verifier] Fix the field access issue with putfield/getfield #18440
Conversation
The idea is: for an instance initialization method of the subclass, the access to the superclass's fields must be delayed till the superclass's initialization is finished; otherwise, the fields must belong to the subclass. The correct output (matching the RI's output at #16524 (comment)) is as follows:
|
The PR is verified in internal & external builds (Java 8, 11, 17, 21, and beyond). Reviewer: @gacholio |
8c9de2a
to
2d5bf3b
Compare
The changes aim to capture the corner case when the specified field doesn't exist in the current class or it is intentionally accessed by a hostile subclass prior to its superclass's initialization when it belongs to one of the superclasses. Related: eclipse-openj9#16524 Signed-off-by: ChengJin01 <[email protected]>
2d5bf3b
to
e241c4d
Compare
jenkins test sanity win jdk21 |
The changes aim to capture the corner case when
the specified field doesn't exist in the current
class or it is intentionally accessed by a hostile
subclass prior to its superclass's initialization
when it belongs to one of the superclasses.
Related: #16524
Signed-off-by: ChengJin01 [email protected]