我正在尝试使用 m2e (maven) 插件在 eclipse 中运行i-jetty 。第 530 行的文件 IJettyService.java 的源代码给出了这个调用
SslSelectChannelConnector sslConnector = new SslSelectChannelConnector(sslContextFactory);
Eclipse IDE 在这里抱怨
The constructor SslSelectChannelConnector(SslContextFactory) is
undefined
所以我使用了反编译器,发现它确实存在。
/* ------------------------------------------------------------ */
public SslSelectChannelConnector()
{
this(new SslContextFactory(SslContextFactory.DEFAULT_KEYSTORE_PATH));
setSoLingerTime(30000);
}
/* ------------------------------------------------------------ */
/** Construct with explicit SslContextFactory.
* The SslContextFactory passed is added via {@link #addBean(Object)} so that
* it's lifecycle may be managed with {@link AggregateLifeCycle}.
* @param sslContextFactory
*/
public SslSelectChannelConnector(SslContextFactory sslContextFactory)
{
_sslContextFactory = sslContextFactory;
addBean(_sslContextFactory);
setUseDirectBuffers(false);
setSoLingerTime(30000);
}
我不明白为什么它会这样。有没有人遇到过类似的问题?