Skip to content

Commit c2e78c1

Browse files
committed
BridJ: don't stop virtual methods search at first method with unknown name
1 parent be84265 commit c2e78c1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/bridj/cpp/CPPRuntime.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@ public int getPositionInVirtualTable(Pointer<Pointer<?>> pVirtualTable, Method m
509509
if (debug) {
510510
info("\tVtable(" + className + ")[" + iVirtual + "] = null");
511511
}
512+
}
513+
if (pMethod == null) {
512514
return -1;
515+
} else if (virtualMethodName == null) {
516+
continue;
513517
}
514518
try {
515519
MemberRef mr = library.parseSymbol(virtualMethodName);

0 commit comments

Comments
 (0)