Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1F8A21337B79 for ; Fri, 12 Nov 2010 20:24:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 39139-02 for ; Sat, 13 Nov 2010 00:24:41 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B12941337B6C for ; Fri, 12 Nov 2010 20:24:40 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id oAD0OeZV082578 for ; Fri, 12 Nov 2010 20:24:40 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id oAD09nEh076763 for pgsql-jdbc@postgresql.org; Fri, 12 Nov 2010 20:09:49 -0400 (AST) (envelope-from news) From: Lew X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: PSQLException: The column name was not found in this ResultSet. Date: Fri, 12 Nov 2010 19:10:07 -0500 Organization: albasani.net Lines: 24 Message-ID: References: <270369.52816.qm@web113412.mail.gq1.yahoo.com> <82k4kimq99.fsf@mid.bfk.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <82k4kimq99.fsf@mid.bfk.de> Cancel-Lock: sha1:CGv1D3oxRmaHuyjlyPiRPoxdiRM= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.14) Gecko/20101006 Thunderbird/3.0.9 Injection-Info: news.albasani.net; logging-data="quh2ncrqC5OeGqsGOBbvMcjEBXMTnQVGzVc3MWzDx/fJt9aUOkWFINWncqcn2AjQ6CUghl0Vl+jlSHlpnlatoW7YxIufcG9lVZWngSfVXn2G7w/aQDVSUziKu282ovJr"; mail-complaints-to="abuse@albasani.net" To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-10 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/36 X-Sequence-Number: 21157 On 11/12/2010 12:00 PM, Florian Weimer wrote: Lew: >> I do not know of any interface that requires its implementations to be >> thread safe, anywhere in Java. The closest I can think of is the JPA >> javax.persistence.EntityManagerFactory, all extant implementations of >> which are thread-safe, but of course the interface cannot require >> that. >> >> Can you think of one that does? > java.util.concurrent.BlockingQueue and many others from the > java.util.concurrent package. This is not enforced by the language, > of course. And therefore does not require implementations to be thread safe, as I stated. Even the documentation for 'BlockingQueue' makes that point: "BlockingQueue implementations are thread-safe." Not the interface, only its implementations are thread safe, and implicitly only the ones known at the time the Javadoc comments were written. -- Lew