Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B4AD9200B9D for ; Thu, 29 Sep 2016 01:37:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B338B160AD4; Wed, 28 Sep 2016 23:37:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 02B9E160AD3 for ; Thu, 29 Sep 2016 01:37:54 +0200 (CEST) Received: (qmail 86669 invoked by uid 500); 28 Sep 2016 23:37:49 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 86653 invoked by uid 99); 28 Sep 2016 23:37:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 23:37:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DC990C0C0D for ; Wed, 28 Sep 2016 23:37:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.72 X-Spam-Level: X-Spam-Status: No, score=-0.72 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=scarlet.be Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hWRIwP-0O2Os for ; Wed, 28 Sep 2016 23:37:45 +0000 (UTC) Received: from eir.is.scarlet.be (eir.is.scarlet.be [193.74.71.27]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 77D8D5FC6A for ; Wed, 28 Sep 2016 23:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1475105858; bh=eTXfASoJpKOt3xKBX/isQiwrtE3o0M5Kxki3P/dshnY=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:In-Reply-To:References:Message-ID; b=kM7sGrJ2kfUu1rFkbQxQHXTiA6EAV/XgyauglN8E6Osww/WsaBfkWOwQ7/ta7aVyJ hufKSF12rEzpp13DmBQlx4mnL/YFudzBPTpdCyNQ1d3+Hw4TQtVHrMtxklCiIWQdXW vzz7z2aDzPHtDUy1PD67nJOWu39D3yyFlUFAoCpA= Received: from webmail.scarlet.be (meigs.is.scarlet.be [193.74.71.216]) by eir.is.scarlet.be (8.14.9/8.14.9) with ESMTP id u8SNbbFQ029133 for ; Thu, 29 Sep 2016 01:37:38 +0200 X-Scarlet: d=1475105858 c=193.74.71.216 Received: from ip-213-49-236-170.dsl.scarlet.be ([213.49.236.170]) via ip-213-49-236-170.dsl.scarlet.be ([213.49.236.170]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Thu, 29 Sep 2016 01:37:37 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 29 Sep 2016 01:37:37 +0200 From: Gilles To: Subject: [RNG] How to write Javadoc (Was: ... commit: Fixed the javadoc errors with Java 8) In-Reply-To: <15f03076-3dde-423b-d0eb-e83bec3113b2@apache.org> References: <5cfd91175be15ecaecdf838151c4bc0c@scarlet.be> <4777913a-a93e-1091-1afd-a7df3c7f7d13@apache.org> <15f03076-3dde-423b-d0eb-e83bec3113b2@apache.org> Message-ID: X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: eir; whitelist X-Virus-Scanned: clamav-milter 0.98.1-exp at eir X-Virus-Status: Clean archived-at: Wed, 28 Sep 2016 23:37:55 -0000 Thanks for the non-trivial details that make the change understandable. It would have been nice to post this information on the ML, before applying the changes. The more so that the issue was encountered by several people in different components, and IIRC now, the consensus (or workaround) had been to indeed disable "doclint". With this new specification (where laziness is not forgiven), it is even more important than it was (when I raised the issue, and nobody gave a damn) to decide together how to layout Javadoc comments (so that they are both readable in code and compliant). I've used

to create a _paragraph_: "a distinct section of a piece of writing, usually dealing with a single theme and indicated by a new line, indentation, or numbering" Your usage of

, even if compliant with the HTML spec, does not comply with the above definition, and makes the Javadoc difficult to read. Is there an HTML element which we can use to make a paragraph (that would allow sample code or a list within it)? Gilles On Thu, 29 Sep 2016 00:59:48 +0200, Emmanuel Bourg wrote: > Le 28/09/2016 à 16:40, Gilles a écrit : > >> They are not trivial issues, because they are not seen by everyone. > > I'm not sure I have the same definition of "trivial" in my dictionary > :) > > >> Below, you refer to HTML 5. >> >> Is the "javadoc" tool assuming that its input is valid HTML 5? > > Javadoc in Java 8 is HTML 4 compliant, it'll switch to HTML 5 in Java > 9 > (see JEP 224 [1]). > > But the rule I mentioned isn't new in HTML 5, it existed before: > > https://www.w3.org/TR/html401/struct/text.html#edef-P > > "The P element represents a paragraph. It cannot contain block-level > elements (including P itself)." > > >> Several years ago, I raise the issue of writing "valid" HTML/XHTML. >> >> At the time, the answer had been that the Javadoc specification >> referred to an older HTML version, and that it was not going to >> change, and thus not worth updating the docs in any consistent >> way with the recommendation of W3C. >> >> Has that changed? > > It changed with Java 8 enforcing the correctness of the HTML output. > > >> No, I purposefully removed that option before rerunning "mvn clean >> site"! > >> Perhaps you've run into >> https://issues.apache.org/jira/browse/RNG-1 >> >> All I'm saying is that change must be clarified because it is >> definitely >> not "Java 8" as such that causes the trouble. > > Are you using OpenJDK 8 on Debian/Ubuntu? doclint is disabled by > default > on these systems [2]. > > Emmanuel Bourg > > [1] http://openjdk.java.net/jeps/224 > [2] > > https://sources.debian.net/src/openjdk-8/8u102-b14.1-2/debian/patches/disable-doclint-by-default.diff/ > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org