Skip to content

Commit 2a20a08

Browse files
committed
Sort _members_* fields by name.
HashSet has indeterminate ordering, so rebuilds may change the field order, which could make things weird. Sort them.
1 parent a87b66e commit 2a20a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/generator/SourceWriters/InterfaceInvokerClass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public InterfaceInvokerClass (InterfaceGen iface, CodeGenerationOptions opt, Cod
6161
Methods.Add (new ValidateMethod (iface));
6262
Methods.Add (new DisposeMethod ());
6363
} else {
64-
foreach (var i in GetCompleteImplementedInterfaces (new (), iface)) {
64+
foreach (var i in GetCompleteImplementedInterfaces (new (), iface).OrderBy (x => x.JavaFullNameId)) {
6565
var mi = new PeerMembersField (opt, i.RawJniName, $"{iface.Name}Invoker", isInterface:false, name: $"_members_{i.JavaFullNameId}");
6666
Fields.Add (mi);
6767
}

0 commit comments

Comments
 (0)