-
Notifications
You must be signed in to change notification settings - Fork 306
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
FISH-7340 Remove obsolete EJBContext methods #6268
Conversation
…etCallerIdentity removed in Jakarta EE 9. Also add @OverRide for all overriding methods such that future removals may be detected.
Hi @eirbjo, Thank you for submitting a PR to remove these obsolete methods, it's much appreciated. The internal issue As I commented on your other contribution, #6267, we require you to sign the CLA and send it to us before we can review and accept your changes. Payara/PayaraCLA.pdf at master · payara/Payara Thank you, |
CLA signed, it will be good to get these removed. Here is the OpenJDK issue for the removal of https://bugs.openjdk.org/browse/JDK-8191136 My testing on Payara 5 CE indicates it will run just fine since you throw unconditionally in both of the EJBContext methods taking |
CLA received |
Jenkins test please |
Jenkins test please |
@eirbjo, |
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.
Looks good, I didn't spot any problem this could cause.
The
EJBContext
methodsgetEnvironment
,getCallerIdentity
andisCallerInRole(Identity)
were removed in Jakarta EE 9.This PR removes these methods from
EJBContextImpl
.Since this was probably caused by missing
@Override
annotations, I went ahead and added that for all overriding methods such that future removals may be detected.Description
This is an enhancement which removes dead code and also allows Payara to compile on future JDKs where the deprecated
Identity
class has been removed.Important Info
Testing
Testing Performed
Ran
mvn clean install
successfully.Testing Environment