Bladeren bron
Fixed JNM#getFunctionalInterfaceMethod
Now it doesn't select the first nondefault method but the first public nondefault method
bovenliggende
commit
a96a0f41c0
Geen bekende sleutel gevonden voor deze handtekening in de database
|
@@ -1000,7 +1000,7 @@ public class JavaNativeModule {
|
1000
|
1000
|
|
1001
|
1001
|
private Method getFunctionalInterfaceMethod(Class<?> functionalInterface) {
|
1002
|
1002
|
for (Method method : functionalInterface.getDeclaredMethods()) {
|
1003
|
|
- if (!method.isDefault())
|
|
1003
|
+ if (Modifier.isPublic(method.getModifiers()) && !method.isDefault())
|
1004
|
1004
|
return method;
|
1005
|
1005
|
}
|
1006
|
1006
|
|