来自Android开发者Tic Tac Toe客户端(Android),https://github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-android有......
public class Tictactoe extends AbstractGoogleJsonClient { etc}
与构造函数:
public Tictactoe(HttpTransport transport, JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer) {
super(transport, jsonFactory, DEFAULT_ROOT_URL, DEFAULT_SERVICE_PATH, httpRequestInitializer
, false);
}
我在super()上遇到编译错误,我被告知超级期望Builder,而不是6个params,
但是类Tictactoe extends有一个构造函数,它接受6个参数 .
对于
protected AbstractGoogleJsonClient(HttpTransport transport, JsonFactory jsonFactory,
String rootUrl, String servicePath, HttpRequestInitializer httpRequestInitializer,
boolean legacyDataWrapper) {
super(transport, httpRequestInitializer, rootUrl, servicePath, newObjectParser(
jsonFactory, legacyDataWrapper));
}
所以...
这里发生了什么事?为什么'super'期望Builder而不是6 args?