You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public interface DoubleFunction extends Function<Double, Double> {}
and some Ops to go with it. Then, we ask Ops for one of those DoubleFunctions using
DoubleFunction df = env.op("fooOp", new Nil<DoubleFunction>(), new Nil[] {new Nil<Double>()}, new Nil<Double>())
Currently, if ops can find a suitable DoubleFunction it will wrap it into a GenericTypedFunction, and then will encounter a ClassCastException (because a GenericTypedFunction is obviously not a DoubleFunction)
The solution to this problem involves changing DefaultOpEnvironment.getWrapperClass(). It might be that we should only wrap if there is a wrapper for the direct superInterface of a particular Op.
Activity
gselzer commentedon Feb 9, 2021
This issue was resolved via scijava/incubator#25
Merge pull request #52 from scijava/scijava/incubator/junit5