“Constructor call must be the first statement in a constructor” issue in Java [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Why does this() and super() have to be the first statement in a constructor? I'd like to have constructor chain in Java. For example, with the first constructor I have a string as a parameter, and call the second constructor as I create an object from the parameter string. public class IMethodFinder { public IMethodFinder(String projectName, String methodName, int numberOfParameters) { IProject project =