Good catch! +1

PS. We should perhaps convert few of those dynalink samples as tests..

Thanks,

-Sundar

On 10/11/2016 2:23 AM, Attila Szegedi wrote:
> Please review JDK-8167443 "Nashorn static method linking bypasses 
> autoexported linkers" at 
> <http://cr.openjdk.java.net/~attila/8167443/webrev.jdk9> for 
> <https://bugs.openjdk.java.net/browse/JDK-8167443>
>
> This is a fairly minor thing, but it was breaking one of our Dynalink samples 
> so it actually brought to light a conceptual inconsistency.
>
> I wrote a test for it, by factoring out the body of 
> DynamicLinkerFactoryTest.autoLoadedLinkerTest and using it twice (once as 
> original, although now it looks up the Object.toString method) and once with 
> a static method (System.currentTimeMillis).
>
>
> Thanks,
>   Attila.

Reply via email to