JDK 8中的Javadoc:无效的“自动关闭元素”(Javadoc in JDK 8 : Invalid “self

编程入门 行业动态 更新时间:2024-10-28 05:20:20
JDK 8中的Javadoc:无效的“自动关闭元素”(Javadoc in JDK 8 : Invalid “self-closing element not allowed”)

使用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.

更多推荐

本文发布于:2023-07-25 23:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1267562.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自动关闭   元素   JDK   Javadoc   Invalid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!