Skip to content
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

GetCallerClassTest: Accept OpenJ9's InternalError Message #382

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

babsingh
Copy link
Member

@babsingh babsingh commented Dec 6, 2021

InternalError message in GetCallerClassTest differs between JVMs:

  • OpenJ9: "Caller is not annotated as @sun.reflect.CallerSensitive"
  • OpenJDK: "CallerSensitive annotation expected"

GetCallerClassTest has been updated to accept OpenJ9's InternalError message.

Closes: eclipse-openj9/openj9#13998

Signed-off-by: Babneet Singh sbabneet@ca.ibm.com

@babsingh babsingh changed the title Accept OpenJ9 InternalError Message Accept OpenJ9's InternalError Message Dec 6, 2021
@babsingh babsingh changed the title Accept OpenJ9's InternalError Message GetCallerClassTest: Accept OpenJ9's InternalError Message Dec 6, 2021
@babsingh
Copy link
Member Author

babsingh commented Dec 6, 2021

While testing these changes locally, I noticed segfaults in the JVM, which was built using the latest openjdk-next, openj9 and omr repos. These test changes won't cause the segfault. Just to be safe, I will keep this PR in the draft state until I figure out the cause of the segfaults,.

@babsingh babsingh marked this pull request as draft December 6, 2021 20:38
@pshipton
Copy link
Member

pshipton commented Dec 6, 2021

You could just use startsWith() || startsWith() to keep it simpler.

@babsingh babsingh force-pushed the fix_GetCallerClassTest branch 3 times, most recently from 0c945e9 to 50e72a6 Compare December 6, 2021 22:14
InternalError message in GetCallerClassTest differs between JVMs:
- OpenJ9: "Caller is not annotated as @sun.reflect.CallerSensitive"
- OpenJDK: "CallerSensitive annotation expected"

GetCallerClassTest has been updated to accept OpenJ9's InternalError message.

Closes: eclipse-openj9/openj9#13998

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
Copy link
Member Author

babsingh commented Dec 6, 2021

You could just use startsWith() || startsWith() to keep it simpler.

Updated the PR to reflect the suggested changes.

@pshipton
Copy link
Member

pshipton commented Dec 6, 2021

lgtm. Regardless of the segfaults, if this is removed from draft then I would merge it.

@babsingh
Copy link
Member Author

babsingh commented Dec 7, 2021

The segfault is a new failure, which is observed later in the test code after this fix is applied. I have opened eclipse-openj9/openj9#14097 to investigate the segfault.

This PR should be good to merge.

@babsingh babsingh marked this pull request as ready for review December 7, 2021 00:05
@pshipton pshipton merged commit c36a9d8 into ibmruntimes:openj9 Dec 7, 2021
babsingh added a commit to babsingh/aqa-tests that referenced this pull request Dec 13, 2021
eclipse-openj9/openj9#13996 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13997 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13998 is fixed via ibmruntimes/openj9-openjdk-jdk#382.

GetCallerClassTest does not run successfully yet. Currently, it fails due to
eclipse-openj9/openj9#14097. So, it remains excluded.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
babsingh added a commit to babsingh/aqa-tests that referenced this pull request Dec 13, 2021
eclipse-openj9/openj9#13996 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13997 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13998 is fixed via ibmruntimes/openj9-openjdk-jdk#382.

GetCallerClassTest continues to be excluded since it fails due to
eclipse-openj9/openj9#14097.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
babsingh added a commit to babsingh/aqa-tests that referenced this pull request Dec 15, 2021
eclipse-openj9/openj9#13996 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13997 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13998 is fixed via ibmruntimes/openj9-openjdk-jdk#382.

GetCallerClassTest continues to be excluded since it fails due to
eclipse-openj9/openj9#14097.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
llxia pushed a commit to adoptium/aqa-tests that referenced this pull request Dec 15, 2021
eclipse-openj9/openj9#13996 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13997 is fixed via eclipse-openj9/openj9#14125.
eclipse-openj9/openj9#13998 is fixed via ibmruntimes/openj9-openjdk-jdk#382.

GetCallerClassTest continues to be excluded since it fails due to
eclipse-openj9/openj9#14097.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[JDK18] InternalError: Caller is not annotated as @CallerSensitive
2 participants