Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5LF3-0004bQ-F5 for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 21:51:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5LF1-0005Na-Tc for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 21:51:27 +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 1Z5LEz-0005NP-U6 for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 21:51:26 +0000 Received: from smtprelay03.ispgateway.de ([80.67.31.30]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5LEw-0001jy-PV for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 21:51:24 +0000 Received: from [88.66.14.101] (helo=Zauselmaus) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5LEG-00036g-8T for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 23:50:40 +0200 From: "Markus KARG" To: "'List'" References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <005101d0a86a$f18ffe90$d4affbb0$@eu> <60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com> <002901d0a93d$52152100$f63f6300$@eu> In-Reply-To: Subject: Re: Pre-processing during build Date: Wed, 17 Jun 2015 23:51:26 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <00ac01d0a947$c3191f00$494b5d00$@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: AdCpQrQ0TG1+x+BHTdaRdbzo/a01NwABLQxA Content-Language: de X-AVK-Virus-Check: AVA 25.1869;71FD75 X-AVK-Spam-Check: 2; str=0001.0A0C0203.5581EBD7.0071,ss=2,re=0.000,recu=0.000,reip=0.000,cl=2,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 Wrong. 12.1.1 contains more restriction on the initial class than 12.2 whic= h describes the general process for ANY class. Hence it is a difference. Th= at is what you see in the difference of you initial example to mine on Gist= . :-) Sorry I was not aware that you only posted the example to demonstrate REFLE= CTION to fail. Maybe I missed that. I always talked about normal instantiat= ion, not about reflection. Also AFAIK JDBC spec does not say reflection MUS= T be possible, does it? -----Original Message----- From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com]=20 Sent: Mittwoch, 17. Juni 2015 23:15 To: Markus KARG Cc: List Subject: Re: [JDBC] Pre-processing during build >This is difference is clearly documented in chapters JLS 12.1 (initial cla= ss) and JLS 12.2 (other classes). There is no difference. 12.1.1 clearly reads: "This loading process is described further in =C2=A71= 2.2." Just in case, I've updated my gist: https://gist.github.com/vlsi/aeeb4a61d9c2b67ad213, so you can see it is ref= lection that makes the thing fail. I thought it was obvious from the start: reflection has to represent method= arguments as Class somehow, so it fails as anyone would expect. 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