Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rABXn-005F9Q-No for pgsql-jdbc-commits@arkaria.postgresql.org; Mon, 04 Dec 2023 16:11:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rABXm-000A3O-Fk for pgsql-jdbc-commits@arkaria.postgresql.org; Mon, 04 Dec 2023 16:11:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rABXm-000A3G-9F for pgsql-jdbc-commits@lists.postgresql.org; Mon, 04 Dec 2023 16:11:38 +0000 Received: from out-28.smtp.github.com ([192.30.252.211]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rABXj-008mDT-MJ for pgsql-jdbc-commits@lists.postgresql.org; Mon, 04 Dec 2023 16:11:37 +0000 Received: from github.com (hubbernetes-node-32f8240.ash1-iad.github.net [10.56.203.114]) by smtp.github.com (Postfix) with ESMTPA id DBF93100862 for ; Mon, 4 Dec 2023 08:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1701706294; bh=UPO0oQS3bilHohTwdDUAE1agY7bgOBl4wnZADzuhN3I=; h=Date:From:To:Subject:From; b=aGwyuJ14/DsZOJA7Nn7Kh1ywN5wImRuTKtmL1mqM+JonFQKK+CjZDzwI5/nQulmZR 9CMnmWyFuEsj5HKrR0OPSl1yY3I49NFDhnZg8n52+ztzoTKd5b4NzpUzscjRW71gF3 NkZ3uAZmyO1F3wfx+kiK09WGPfLvZtl2YFuoTI4U= Date: Mon, 04 Dec 2023 08:11:34 -0800 From: Christian Ullrich To: pgsql-jdbc-commits@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] d360db: fix: support waffle-jna 2.x and 3.x by using refle... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc-commits@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: d360dbe5349d56bf271cb29e5ed25d87ab957c88 https://github.com/pgjdbc/pgjdbc/commit/d360dbe5349d56bf271cb29e5ed25d87ab957c88 Author: Christian Ullrich Date: 2023-12-04 (Mon, 04 Dec 2023) Changed paths: M docs/content/documentation/use.md M pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java Log Message: ----------- fix: support waffle-jna 2.x and 3.x by using reflective approach for ManagedSecBufferDesc (#2720) 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, https://github.com/pgjdbc/pgjdbc/issues/2690#issuecomment-1345636637 Fixes https://github.com/pgjdbc/pgjdbc/issues/2690