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

Add variants of methods without checked exceptions #141

Open
arjantijms opened this issue Mar 6, 2024 · 0 comments
Open

Add variants of methods without checked exceptions #141

arjantijms opened this issue Mar 6, 2024 · 0 comments
Assignees
Milestone

Comments

@arjantijms
Copy link
Contributor

jakarta.security.jacc.PolicyContext.getContext(String) and jakarta.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory() are tedious to use, since they declare exceptions that most application code cannot reasonably handle. In practice they are always caught and retrown in some other exception.

To make those not so tedious to use, introduce variants that throw a runtime exception instead. Clients can still choose to call the variant with the checked exception.

@arjantijms arjantijms added this to the 3.0 milestone Mar 6, 2024
@arjantijms arjantijms self-assigned this Mar 6, 2024
arjantijms added a commit to arjantijms/authorization that referenced this issue Mar 6, 2024
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
arjantijms added a commit that referenced this issue Mar 8, 2024
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

No branches or pull requests

1 participant