Skip to content

Commit 8dbdebe

Browse files
committed
[jcw-gen] Do not register static methods on an interface.
1 parent b588ef5 commit 8dbdebe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaCallableWrapperGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ void AddNestedTypes (TypeDefinition type)
153153
return d;
154154
})
155155
.Where (d => GetRegisterAttributes (d).Any ())
156-
.SelectMany (d => d.Methods)) {
156+
.SelectMany (d => d.Methods)
157+
.Where (m => !m.IsStatic)) {
157158
AddMethod (imethod, imethod);
158159
}
159160

0 commit comments

Comments
 (0)