@@ -49,8 +49,8 @@ function JacFunctionWrapper(f::F, fu_, u, p, t;
4949 if deporder
5050 # Check this first else we were breaking things
5151 # In the next breaking release, we will fix the ordering of the checks
52- iip = static_hasmethod (f, typeof ((fu, u)))
53- oop = static_hasmethod (f, typeof ((u,)))
52+ iip = hasmethod (f, typeof ((fu, u)))
53+ oop = hasmethod (f, typeof ((u,)))
5454 if iip || oop
5555 if p != = nothing || t != = nothing
5656 Base. depwarn (
@@ -74,17 +74,17 @@ function JacFunctionWrapper(f::F, fu_, u, p, t;
7474 end
7575
7676 if t != = nothing
77- iip = static_hasmethod (f, typeof ((fu, u, p, t)))
78- oop = static_hasmethod (f, typeof ((u, p, t)))
77+ iip = hasmethod (f, typeof ((fu, u, p, t)))
78+ oop = hasmethod (f, typeof ((u, p, t)))
7979 if ! iip && ! oop
8080 throw (ArgumentError (""" `p` and `t` provided but `f(u, p, t)` or `f(fu, u, p, t)`
8181 not defined for `f`!""" ))
8282 end
8383 return JacFunctionWrapper {iip, oop, 1, F, typeof(fu), typeof(p), typeof(t)} (f,
8484 fu, p, t)
8585 elseif p != = nothing
86- iip = static_hasmethod (f, typeof ((fu, u, p)))
87- oop = static_hasmethod (f, typeof ((u, p)))
86+ iip = hasmethod (f, typeof ((fu, u, p)))
87+ oop = hasmethod (f, typeof ((u, p)))
8888 if ! iip && ! oop
8989 throw (ArgumentError (""" `p` is provided but `f(u, p)` or `f(fu, u, p)`
9090 not defined for `f`!""" ))
@@ -94,8 +94,8 @@ function JacFunctionWrapper(f::F, fu_, u, p, t;
9494 end
9595
9696 if ! deporder
97- iip = static_hasmethod (f, typeof ((fu, u)))
98- oop = static_hasmethod (f, typeof ((u,)))
97+ iip = hasmethod (f, typeof ((fu, u)))
98+ oop = hasmethod (f, typeof ((u,)))
9999 if ! iip && ! oop
100100 throw (ArgumentError (""" `p` is provided but `f(u)` or `f(fu, u)` not defined for
101101 `f`!""" ))
0 commit comments