-
Notifications
You must be signed in to change notification settings - Fork 722
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
Fix and enable heavy/light value type tests #19716
Conversation
- add back missing error handling for value type inheritance - remove stale heavy/light abstract class logic - re-enable tests and remove heavy/light naming Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
Jenkins test sanity,extended alinuxval jdknext |
jenkins test sanity,extended xmac jdk21 |
Jenkins test sanity,extended zlinux jdk21 |
The mac failure looks like a build system issue. |
* J9ClassHasIdentity is also inherited. If a class cannot be super class | ||
* of value types, its subclasses cannot be super of value types either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please help me understand why J9ClassHasIdentity
should no longer be inherited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In an older version of the spec java.lang.Object was considered to be neither value or identity type. In the current spec it is always considered an identity type, so it is not always correct to inherit this flag since a value class can have java.lang.Object has a superclass.
Since its easy to tell whether this flag should be set or not based on the ACC_IDENTITY flag I thought it made more sense to check for correct inheritance where J9ClassIsValueType is set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Related to #19692