pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus KARG <markus@headcrashing.eu>
To: 'List' <pgsql-jdbc@postgresql.org>
Subject: Re: Pre-processing during build
Date: Wed, 17 Jun 2015 23:51:26 +0200
Message-ID: <00ac01d0a947$c3191f00$494b5d00$@eu> (raw)
In-Reply-To: <CAB=Je-GNyaieUKzi-NCXrkRVyOGpXvMnfG3ry9RL4Tn-kTPf5w@mail.gmail.com>
References: <000c01d0a7b6$97571ee0$c6055ca0$@eu>
	<CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com>
	<CAB=Je-FC6NE7z=OMpfGRyOPk--Fw6Uci9iFbu+JQ1THfeuhgHA@mail.gmail.com>
	<CADK3HHJo=bjA9z=ZBzk-vqxfu+0Eh4UmLd0WJUhngKAVYogz8w@mail.gmail.com>
	<005101d0a86a$f18ffe90$d4affbb0$@eu>
	<CAB=Je-G1+7x4LabgB6A4cF_RY0CV1RwbDryFXa0GioB_vg7o=g@mail.gmail.com>
	<60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com>
	<002901d0a93d$52152100$f63f6300$@eu>
	<CAB=Je-GNyaieUKzi-NCXrkRVyOGpXvMnfG3ry9RL4Tn-kTPf5w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Wrong. 12.1.1 contains more restriction on the initial class than 12.2 which describes the general process for ANY class. Hence it is a difference. That 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 REFLECTION to fail. Maybe I missed that. I always talked about normal instantiation, not about reflection. Also AFAIK JDBC spec does not say reflection MUST be possible, does it?

-----Original Message-----
From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com] 
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 class) and JLS 12.2 (other classes).

There is no difference.

12.1.1 clearly reads: "This loading process is described further in ยง12.2."

Just in case, I've updated my gist:
https://gist.github.com/vlsi/aeeb4a61d9c2b67ad213, so you can see it is reflection 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



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (92+ messages)  latest in thread

Message-ID: <00ac01d0a947$c3191f00$494b5d00$@eu>
Permalink:  ../00ac01d0a947$c3191f00$494b5d00$@eu/
Also on:    postgresql.org/message-id/00ac01d0a947$c3191f00$494b5d00$@eu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: markus@headcrashing.eu
  Subject: Re: Pre-processing during build
  In-Reply-To: <00ac01d0a947$c3191f00$494b5d00$@eu>
  References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com> <CAB=Je-FC6NE7z=OMpfGRyOPk--Fw6Uci9iFbu+JQ1THfeuhgHA@mail.gmail.com> <CADK3HHJo=bjA9z=ZBzk-vqxfu+0Eh4UmLd0WJUhngKAVYogz8w@mail.gmail.com> <005101d0a86a$f18ffe90$d4affbb0$@eu> <CAB=Je-G1+7x4LabgB6A4cF_RY0CV1RwbDryFXa0GioB_vg7o=g@mail.gmail.com> <60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com> <002901d0a93d$52152100$f63f6300$@eu> <CAB=Je-GNyaieUKzi-NCXrkRVyOGpXvMnfG3ry9RL4Tn-kTPf5w@mail.gmail.com> <00ac01d0a947$c3191f00$494b5d00$@eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox