Community
Participate
Working Groups
The java.lang.ProcessBuilder has two methods with the following signature: ProcessBuilder command(String...) List<String> command() In java, the command() is picked if no arguments are specified. In B3, the command(String...) is picked. The problem is in org.eclipse.b3.backend.evaluator.typesystem.TypeUtils.Candidate.findMostSpecificApplicableCandidates(String, Type[], CandidateSource<C>) which does not continue the search after it finds command(String...). I debugged this as far as finding that a return of VARIABLE_ARITY_BY_SUBTYPING is returned for this method.
As I continued debugging - I found that it actually did not get a candidate list of more than the command(String...) function - so the problem is introduced earlier... (looks like an issue with not loading all overloaded methods when loading one... (i.e. it knows about command(String...), but not command().
Found it. Now, all methods with the same name are loaded and woven at the same time.