Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5F4g-0005C5-F2 for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 15:16:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5F4f-0004Cw-Kh for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 15:16:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5F4d-0004Ck-LQ for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 15:16:19 +0000 Received: from rad0.itstriangle.com ([199.38.107.90]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5F4W-0002Jc-Gb for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 15:16:17 +0000 Received: from itstriangle.com (localhost [127.0.0.1]) by rad0.itstriangle.com (8.14.4/8.14.4) with ESMTP id t5HFG8ZO021227; Wed, 17 Jun 2015 11:16:09 -0400 Received: FROM [192.168.157.52] ([216.220.4.222]) BY itstriangle.com WITH ESMTP ; Wed, 17 Jun 2015 11:16:07 -0400 Message-ID: <55819204.6030308@ttc-cmc.net> Date: Wed, 17 Jun 2015 09:28:04 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 MIME-Version: 1.0 To: Christopher BROWN , pgsql-jdbc@postgresql.org Subject: Re: Pre-processing during build References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <005101d0a86a$f18ffe90$d4affbb0$@eu> <60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Christopher BROWN wrote: > Then, merge all JARs into a single JAR. Clients could then refer to the > specific driver version they require in code, or use a generic Driver class that > (in the constructor) detects the appropriate JDBC version and fixes a "final" > int or Enum field, used thereafter in "switch" blocks to call the appropriate > driver version, acting as a lightweight proxy when the specific driver version > can't be referred to (for backwards compatibility). More adventurous developers > .......................................... Somehow as someone who manages a generic database access tool I don't like the sounds of this requirement. Why as a client developer should I have to detect the appropriate Java Version then somehow figure out the user's requirement for the Driver class to call in your JDBC? I don't have to do this for any other database so why for PostgreSQL's JDBC. It may be of no concern really, but that is going to require me to change the coding in my client for instantiating your Driver class, which is the same for all databases so far, all so that you can change your build process, which does not appear to be broken. How about backup and state the one, two, three pros, and cons for initiating the change in the build process again. Then highlight what additional work would be required in the code, etc. to accomplish the new build process. Then the list could input on the proposal. Maybe that has already taken place and I missed it? danap. > ~ > ~ > ~ > ~ > ~ > Hope that helps ; hope it's not redundant with regards to messages sent since I > started typing away my 2 cents... In any case, I regularly use these techniques > in production code with no accidents. > > -- > Christopher -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc