-
assigned issue to
Confusing signature of method sum(ArrayList<? extends Potential> tablePotentials) in class DiscretePotentialOperations
Issue #26
resolved
The signature of method sum(ArrayList<? extends Potential> tablePotentials) in class org.openmarkov.core.model.network.potential.operation.DiscretePotentialOperationsDiscretePotentialOperations is confusing, because the actual implementation of the method assumes that the input argument is of type ArrayList<TablePotential>.
Thus, a call with an ArrayList<TreeADDPotential> as input argument compiles, but produces a ClassCastException in execution time.
Comments (2)
-
repo owner -
reporter - changed status to resolved
- Log in to comment