繁体   English   中英

只有第一个构造函数出现在javadoc中(从eclipse运行)?

[英]Only first constructor showing up in javadoc (run from eclipse)?

为什么只有第一个构造函数出现在javadoc中?

代码摘录:

/**
 * Returns a <code>Config</code> object resulting from parsing a
 * configuration file.
 * 
 * @param p a <code>Path</code> object representing the configuration file.
 */
public Config(Path p) {
    ...code elided here...
}

/**
 * Returns a <code>Config</code> object resulting from parsing a
 * configuration file.
 * 
 * @param filename a <code>String</code> naming the configuration file.
 */
public Config(String filename) {
    this(Paths.get(filename));
}

Javadoc摘录:

只可以有一个人

(同样只有一个显示在“构造函数详细信息”中)

后代的详细信息:OS X 10.8.5,Eclipse EE Juno SR2,Java 1.7.0_72( 但请参阅接受的答案

我可以直接使用javadoc命令行工具重现1.6.0_21的问题。 可以理解的是,抱怨package java.nio.file does not exist但仍设法创建文件(只有一个构造函数)。

看起来你正在使用一个1.6(或更旧版本)的javadoc工具为1.7+源生成文档(这也可以解释为什么你的截图看起来有点......'老')

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM