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

Deprecation of Security Manager fix #2539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tkyc
Copy link
Contributor

@tkyc tkyc commented Nov 14, 2024

Kerberos auth depends on calling Subject.getSubject(), which is deprecated since JDK 17. Fall back to acquiring the subject through the replacement API when the deprecation exception is thrown.

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 50.92%. Comparing base (ef6b770) to head (61e2a52).

Files with missing lines Patch % Lines
...m/microsoft/sqlserver/jdbc/KerbAuthentication.java 0.00% 15 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2539      +/-   ##
============================================
- Coverage     50.93%   50.92%   -0.02%     
- Complexity     3893     3898       +5     
============================================
  Files           147      147              
  Lines         33371    33384      +13     
  Branches       5593     5595       +2     
============================================
+ Hits          16999    17001       +2     
- Misses        13963    13976      +13     
+ Partials       2409     2407       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

JDK 23 support - UnsupportedOperationException: getSubject is supported only if a security manager is allowed
1 participant