We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NoClassDefFoundError
ReflectUtil
1 parent fd32ce3 commit 4099598Copy full SHA for 4099598
web-image/src/com.oracle.svm.hosted.webimage/src/com/oracle/svm/hosted/webimage/util/ReflectUtil.java
@@ -72,8 +72,15 @@ private static Optional<Method> singleAbstractMethodForInterface(Class<?> javaIn
72
return Optional.empty();
73
}
74
75
+ Method[] methods;
76
+ try {
77
+ methods = javaInterface.getMethods();
78
+ } catch (NoClassDefFoundError e) {
79
+ return Optional.empty();
80
+ }
81
+
82
Method sam = null;
- for (final Method method : javaInterface.getMethods()) {
83
+ for (final Method method : methods) {
84
if (OBJECT_METHODS.contains(method)) {
85
// Skip the methods from the Object class.
86
continue;
0 commit comments