-
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
[JDK18] InternalError: Caller is not annotated as @CallerSensitive #13998
Comments
Tests failures documented in the below issues have been excluded: 1) eclipse-openj9/openj9#13995 2) eclipse-openj9/openj9#13996 3) eclipse-openj9/openj9#13997 4) eclipse-openj9/openj9#13998 Parent issue: eclipse-openj9/openj9#13946 The tests will be re-enabled once they are fixed. Signed-off-by: Babneet Singh <[email protected]>
Test code: openjdk-next...GetCallerClassTest.java#L121 Test code expects the OpenJ9's openj9/runtime/nls/j9vm/j9vm.nls Line 1322 in 4d741e5
This failure can be resolved if the Three potential solutions:
@pshipton We have chosen |
Although we don't want the patches, the safest approach is to update the OpenJDK test code. I'm concerned we might miss something otherwise with all the changes that are occurring. Although it would be a better solution, I'm concerned copying the OpenJDK message is a license violation. |
Tests failures documented in the below issues have been excluded: 1) eclipse-openj9/openj9#13995 2) eclipse-openj9/openj9#13996 3) eclipse-openj9/openj9#13997 4) eclipse-openj9/openj9#13998 Parent issue: eclipse-openj9/openj9#13946 The tests will be re-enabled once they are fixed. Signed-off-by: Babneet Singh <[email protected]>
All of the tests which check for an exact exception message match are invalid. We long ago decided against blindly copying OpenJDK messages. Patching 100s of tests seems unreasonable. |
I agree that we should not update OpenJ9 code. I don't think the test in question is invalid. I also agree that we may miss something critical if we exclude the OpenJDK test. In this case, we can update the OpenJDK test with a regex so that it accepts both OpenJ9 and OJDK messages. We will need to only update two locations: @pshipton @gacholio For resolving this issue, shall we proceed with updating the OpenJDK test? |
If you mean updating it in the OpenJDK repo, yes. If you mean a local patch, then no I would not approve that. |
This is updating in the OpenJDK repo, which I agree with. |
It looks like an IBM repo, which is not the OpenJDK repo, so we'll be maintaining patches. This is foolish, but not my problem, I suppose. |
In the future, we can encounter conflicts in the extensions repo for our patches. The chances of the test code to be updated are pretty low. So, these patches should have a low risk for a potential conflict. |
It seems more foolish to allow a bug to occur because we didn't run the tests and something was missed. While it would be nice to contribute the test fix upstream, it seems unlikely to be accepted. Although we could try. |
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
OpenJDK Tests
Error
Related: #13946
The text was updated successfully, but these errors were encountered: