[ 
https://issues.apache.org/jira/browse/POLYGENE-253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niclas Hedhman resolved POLYGENE-253.
-------------------------------------
    Resolution: Fixed

Finally took a look at this problem, and it was a lot simpler than I first 
imagined.

To access default methods, one needs to create a MethodHandle and do so via a 
MethodHandle.Lookup, and doing that reflectively. Previously, this only had a 
PRIVATE access passed to the constructor, and in Java 8 that was "enough". In 
Java 9, one must specify exactly if private, public, protected, or package is 
part of the look up.

I don't think that this means that we can intercept private methods within the 
interface, and I will not investigate that.

> Default interface methods support broken on JDK 9b139
> -----------------------------------------------------
>
>                 Key: POLYGENE-253
>                 URL: https://issues.apache.org/jira/browse/POLYGENE-253
>             Project: Polygene
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Paul Merlin
>            Priority: Major
>             Fix For: 3.1.0
>
>
> See the test reports: 
> https://builds.apache.org/view/P/view/Polygene/job/Polygene(JavaEdition)-develop-java9-check/158/testReport/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to