使用JDK 8运行javadoc时有什么最好的解决方法,一个收到此错误。
看来,对于JDK 8,已经决定像<br />和<p />这样的标签应该生成错误,因为它们是无效的(严格的)HTML 4. 参见讨论JDK邮件列表
我想知道,因为我只想使用maven编译一些java项目,并且在这个问题上跳槽。 当然,我可以提交一个项目的票(我想我会),但如果有办法如何禁用这种行为(对于一台机器),这将是巨大的。 否则,我希望很多项目需要修复,然后才能在没有问题的情况下构建JDK 8。
What are the best workarounds when running javadoc using JDK 8 and one receives this error.
It seems that for JDK 8 it has been decided that tags like <br /> and <p /> should generate errors, because they are invalid (strict) HTML 4. see discussion JDK mailing list here
I wonder, because I just wanted to compile some java project using maven and tripped over this issue. Of course, I can file a ticket with the project (and I guess I will), but it would be great if there is a way how to disable this behaviour (for a machine). Otherwise, I expect that a lot of projects need to be fixed before they can be built on JDK 8 without issues.
最满意答案
对于这两种情况,我认为推荐的操作是用<p>替代它们。 这是指向Oracle文档的链接。
For those two particular cases, I think the recommended action is to substitute them with <p>. This is the link to the Oracle documentation.
更多推荐
发布评论