0

I'm trying to add Javadocs to IntelliJ for CIS-Client-11g. From what I can tell Oracle doesn't offer the javadoc jar file as a download. The actual documentation is online though here: http://docs.oracle.com/cd/E21764_01/apirefs.1111/e17350/

However when I try to Ctrl+Q on cisApplication.getUCPMAPI() IntelliJ tries to access:

However the actual URL for the method is:
http://docs.oracle.com/cd/E21764_01/apirefs.1111/e17350/com/stellent/cis/ICISApplication.html#getUCPMAPI__
(notice the end is "__" ).

How Can I get IntelliJ to check for _ or __ at the end of Javadoc URLS when it can't find them?

4

1 回答 1

1

这不是可配置的项目。当 Java 8 中的 Javadoc URL 约定发生变化时,需要对 IDEA 进行内部更改。(有关由于 URL 语法更改而找不到的方法,请参阅 IDEA-118970 Java 8 Javadoc)。这是在 IDEA v13.1 中实现的。看起来下划线的使用是一种非常规格式。可能是甲骨文在收购 Sum(和 Java)之前使用的东西。我建议打开一个功能请求,要求支持该约定。这很可能出现在 IntelliJ IDEA 的开源部分。因此,您可以创建一个补丁来修复它并提供它,以便更快地修复问题。

另一种选择(因为您显然已经创建了自己的文档 JAR)是在锚点上进行搜索和替换,并用破折号替换下划线。如果您在 Windows 上,PowerGrep会轻松搞定。事实上,当我等待上述错误修复到位时,我曾使用 PowerGrep 做相反的事情。我将最新 Java 8 早期访问版本的新 Javadoc 格式锚“转换”为旧版本。这只是大约 10 或 15 分钟的工作。

于 2014-09-30T22:09:18.303 回答