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

fix: support waffle-jna 2.x and 3.x by using reflective approach for ManagedSecBufferDesc #2720

Merged
merged 1 commit into from Dec 4, 2023

Commits on Nov 28, 2023

  1. fix: support waffle-jna 2.x and 3.x by using reflective approach for …

    …ManagedSecBufferDesc
    
    This commit makes pgjdbc code compatible with both jna-platform 4.5 and jna-platform 5.x
    The reason for the change is that SecBufferDesc was improperly typed in jna-platform 4.5,
    so they suggested completely drop the old constructor.
    
    Now we try both constructors, and use the newer one.
    
    Inspired by bokken,
    pgjdbc#2690 (comment)
    
    Fixes pgjdbc#2690
    chrullrich authored and vlsi committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    fddb94b View commit details
    Browse the repository at this point in the history