Skip to content

Commit a1302b9

Browse files
committed
Use mapped Java type when determining BridJ method names
The BridJ StructIO class has different methods to get/set struct fields of different types. The name of these must be dynamically determined for each type. Use the mapped type instead of the type name from the gir, which can be used to match the appropriate getter/setter method.
1 parent 0b0c1ae commit a1302b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gir2java/ConvertedType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public String bridjMethodifyTypeName() {
156156
return "Pointer";
157157
}
158158

159-
String camelType = NameUtils.toCamel(getType());
159+
String camelType = NameUtils.toCamel(getJType().name());
160160

161161
if (knownBridjPrimitives.contains(camelType)) {
162162
return camelType;

0 commit comments

Comments
 (0)