Hi Attila,
Am 24/09/2015 um 15:36 schrieb Attila Szegedi:
thanks for a very comprehensive demonstration of the problem. I agree
these should work; I’ll investigate to see what’s up with them. I raised
https://bugs.openjdk.java.net/browse/JDK-8137093 to track the issue.
Thanks! Looking forward
ew C({
>b: function() {
> doMyStuff();
> }
>});
>
> I get this error:
> javax.script.ScriptException: TypeError: Can not construct my.package.C with
> the passed arguments; they do not match any of its constructor signatures. in
> at line number 2
>
> Removing the default methods, all is working as expected.
>
> Kind regards,
> Axel Dörfler.
var C = Java.type("my.package.C");
new C({
b: function() {
doMyStuff();
}
});
I get this error:
javax.script.ScriptException: TypeError: Can not construct my.package.C
with the passed arguments; they do not match any of its constructor
signatures.
Changeset: d1d4d669373c
Author:sundar
Date: 2014-01-09 19:23 +0530
URL: http://hg.openjdk.java.net/nashorn/jdk9/nashorn/rev/d1d4d669373c
8031359: Invocable.getInterface() works incorrectly if interface has default
methods
Reviewed-by: attila, hannesw
! src/jdk/nashorn/api
Please review http://cr.openjdk.java.net/~sundar/8031359/
Bug: https://bugs.openjdk.java.net/browse/JDK-8031359
Thanks,
-Sundar