Re: Invoking default methods from a Proxy's InvocationHandler in JDK9

2017-01-03 Thread Mandy Chung
> On Jan 2, 2017, at 11:20 PM, Peter Levart wrote: > > Hi Matthew, > > On 01/03/2017 04:28 AM, Matthew Hall wrote: >> I'm a member of the JDBI [1] project, an open source SQL access library >> atop JDBC. >> >> A major part of our API provides implementations of declarative interfaces >> define

Re: Invoking default methods from a Proxy's InvocationHandler in JDK9

2017-01-02 Thread John Rose
On Jan 2, 2017, at 11:33 PM, Alan Bateman wrote: > > On 03/01/2017 07:17, Remi Forax wrote: > >> I do not think that the workaround to create a Lookup object by reflection >> works with 9 given that java.lang.invoke is not declared as an open package. >> >> John Rose has proposed to add a meth

Re: Invoking default methods from a Proxy's InvocationHandler in JDK9

2017-01-02 Thread Alan Bateman
On 03/01/2017 07:17, Remi Forax wrote: I do not think that the workaround to create a Lookup object by reflection works with 9 given that java.lang.invoke is not declared as an open package. John Rose has proposed to add a method to get a private Lookup object through sun.misc.Unsafe but as f

Re: Invoking default methods from a Proxy's InvocationHandler in JDK9

2017-01-02 Thread Peter Levart
Hi Matthew, On 01/03/2017 04:28 AM, Matthew Hall wrote: I'm a member of the JDBI [1] project, an open source SQL access library atop JDBC. A major part of our API provides implementations of declarative interfaces defined by users (similar to MyBatis). Interface methods may be default (in which

Re: Invoking default methods from a Proxy's InvocationHandler in JDK9

2017-01-02 Thread Remi Forax
Mail original - > De: "Matthew Hall" > À: jigsaw-dev@openjdk.java.net > Envoyé: Mardi 3 Janvier 2017 04:28:09 > Objet: Invoking default methods from a Proxy's InvocationHandler in JDK9 > I'm a member of the JDBI [1] project, an open source SQL access library &

Invoking default methods from a Proxy's InvocationHandler in JDK9

2017-01-02 Thread Matthew Hall
I'm a member of the JDBI [1] project, an open source SQL access library atop JDBC. A major part of our API provides implementations of declarative interfaces defined by users (similar to MyBatis). Interface methods may be default (in which case the default method implementation is used) or abstrac