Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIJiD-0004WQ-Ep for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2015 16:51:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIJiC-0005bN-Sn for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2015 16:51:12 +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 1ZIJiC-0005av-5m for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 16:51:12 +0000 Received: from smtprelay06.ispgateway.de ([80.67.18.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIJi4-0002ty-OO for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 16:51:11 +0000 Received: from [88.66.27.219] (helo=Zauselmaus) by smtprelay06.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIJi1-00082R-W5 for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 18:51:02 +0200 From: "Markus KARG" To: "'List'" References: <001801d0c564$cd15bde0$674139a0$@eu> In-Reply-To: Subject: Re: Public vs internal APIs Date: Thu, 23 Jul 2015 18:51:09 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <002901d0c567$c6f9fe00$54edfa00$@eu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdDFZZES9ZP7nk1tQC+oLx5369elxgAAXV7g Content-Language: de X-AVK-Virus-Check: AVA 25.2465;479D603D X-AVK-Spam-Check: 1; str=0001.0A0C0204.55B11B77.020B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -2.6 (--) 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 Actually I would go with a really flat structure, so we can simply use "def= ault" and "public" visibility of classes to distinguish between API and imp= lementation. If more structure is wanted, we could use "org.postgresql" vs.= "org.postgresql.internal" to make it more clear which classes are private = and which are published. Unfortunately Java has no "friends" declaration. :-( -----Original Message----- From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com]=20 Sent: Donnerstag, 23. Juli 2015 18:35 To: Markus KARG Cc: List Subject: Re: [JDBC] Public vs internal APIs > instead restructuring the package hierarchy, as this is was it was invent= ed for originally. package-private is not enough. Java9 will have modules for that, however we would have to live with java8 for a while. Which package would you suggest for org.postgresql.util.LruCache? Vladimir --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc