Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAJpp-0003XG-0p for pgsql-jdbc@arkaria.postgresql.org; Wed, 01 Jul 2015 15:22:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZAJpo-0005Gg-Bp for pgsql-jdbc@arkaria.postgresql.org; Wed, 01 Jul 2015 15:22:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZAJp8-0004iJ-KY for pgsql-jdbc@postgresql.org; Wed, 01 Jul 2015 15:21:18 +0000 Received: from rad0.itstriangle.com ([199.38.107.90]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZAJp2-0000D1-Ev for pgsql-jdbc@postgresql.org; Wed, 01 Jul 2015 15:21:16 +0000 Received: from itstriangle.com (localhost [127.0.0.1]) by rad0.itstriangle.com (8.14.4/8.14.4) with ESMTP id t61FL5ho022514; Wed, 1 Jul 2015 11:21:06 -0400 Received: FROM [192.168.157.52] ([216.220.4.222]) BY itstriangle.com WITH ESMTP ; Wed, 1 Jul 2015 11:21:04 -0400 Message-ID: <55940848.4080606@ttc-cmc.net> Date: Wed, 01 Jul 2015 09:33:28 -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 , PostgreSQL JDBC Subject: Re: SQLJSON References: <558FC12E.8010107@8Kdata.com> <000301d0b187$aeb51a30$0c1f4e90$@eu> <558FC4E1.7020005@8Kdata.com> <001301d0b1b4$7f0862b0$7d192810$@eu> <5590458C.3040805@8Kdata.com> <002901d0b288$52a8e080$f7faa180$@eu> <5591960B.7070406@8Kdata.com> <007c01d0b2a3$9614bfe0$c23e3fa0$@eu> <5591ADFD.8000304@8Kdata.com> <000301d0b2b4$042a41c0$0c7ec540$@eu> <5591C898.8090102@8Kdata.com> <559243A5.4020708@8Kdata.com> <55927EA6.2050905@8Kdata.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.4 (/) 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: > Hello, > > JSR 353 does not address things like JSON schemas (there is no standard at this > time, but this may change, and there are many non-standard implementations) or > binary encoding formats (again, no current standard, but several > implementations). So there is scope for the API to change, with > forward-compatibility issues especially if there are classloader conflicts. > > Bundling the API by default may indeed cause harm if the application already has > JSONP in the classpath (highly likely in Java EE environments, and already the > case in many OSGi environments). I wouldn't mind making things easy for users > by bundling it if it had no side effects for other users, but it WILL, and > that'll happen with the current API, not just potential forward-compatibility > issues. It's not a neutral packaging issue, and those that are against it are > not just motivated by ivory-tower engineering. Indeed, instead of a clear > linkage error, users who don't read the famous manual and who don't really know > about how classloading works, will have much greater difficulty understanding > and resolving such problems. > > As Markus informed us by forwarding Lance Andersen's opinion (he's the JDBC spec > lead): > http://www.postgresql.org/message-id/007701d0b2b6$4cc930b0$e65b9210$@eu > > ...it is expected that the client application provide the classes, not the > driver. This can be done by overloading the getObject() methods (not the > default one; if this is change, then the change should only be activated by a > connection property to maintain backwards compatibility). Furthermore, in the > case of injected drivers (JNDI, Spring, other pools), you won't even have > PostgreSQL in the classpath, so to use JSONP, you'll need to add the API in your > classpath... but because your JSONP classes are not loaded from the same source > as the driver-bundled ones, the JVM will consider them as different, and it just > won't work, even with identical class names. > > So, why deviate from JDBC standard practice, why trip up those that already have > an application server or an imposed enterprise framework providing such classes, > why make life difficult for those who actually read the documentation (I'm > talking about just the "getting started" and possibly even "how to define a > PostgreSQL JDBC URL...", not even dreaming of a developer reading beyond that), > or even that category of users who just use brute force to stick a load of > ".jars" together "until it works", when in fact for the reasons outlined above > (and well-stated by many other posters here) even with such good intentions, for > a large proportion of such users, it in fact won't just work? > > I understand the intention, but there's a lot of real-world feedback here > explaining why, except in the most trivial of situation, it won't just hurt > "smart" developers, but also hurt a large proportion of those it is intended to > help? > > -- > Christopher > +1 danap -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc