Object... arguments是某个函数的参数,例如
public ButtonDialog(String key, ModalityType type, Object ... arguments) {
super(ApplicationFrame.getApplicationFrame(), I18N.getMessage(I18N.getGUIBundle(), "gui.dialog." + key + ".title", arguments), type);
this.arguments = arguments;
configure(key);
pack();
}
当我向这个构造函数中传递arguments值的时候,为什么不能只传递一个Object对象,是jdk版本问题吗?还是别的问题,跪求答案,谢谢各位大神!objectjdk
public ButtonDialog(String key, ModalityType type, Object ... arguments) {
super(ApplicationFrame.getApplicationFrame(), I18N.getMessage(I18N.getGUIBundle(), "gui.dialog." + key + ".title", arguments), type);
this.arguments = arguments;
configure(key);
pack();
}
当我向这个构造函数中传递arguments值的时候,为什么不能只传递一个Object对象,是jdk版本问题吗?还是别的问题,跪求答案,谢谢各位大神!objectjdk
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货