Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4804111154 for ; Thu, 1 May 2014 21:31:43 +0000 (UTC) Received: (qmail 60064 invoked by uid 500); 1 May 2014 21:31:40 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 59872 invoked by uid 500); 1 May 2014 21:31:40 -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 59863 invoked by uid 99); 1 May 2014 21:31:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 21:31:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paulus.benedictus@gmail.com designates 209.85.192.52 as permitted sender) Received: from [209.85.192.52] (HELO mail-qg0-f52.google.com) (209.85.192.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 21:31:36 +0000 Received: by mail-qg0-f52.google.com with SMTP id j5so3870614qga.39 for ; Thu, 01 May 2014 14:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=HC5wjQwQUvYy1RadFrmP/wtalFH4eXnFWLiRUwbiLDI=; b=pn3M3wEUHFip/fLyrTCIA60fimytX/fBblmdtxNfzV862N2P4mx2vRUth+5rEmrZYE r8YsM45oJiSycU8zR2XnDTKRNeDf9sSzSxXRFTXTs+DijPGIcxiruxcxd+yR5ys/S3/P C0BH7ZzbsHi4t+JnBF+TG5QF7pFOZHmAN8nFn0tXojflWYGK+xu10R63k7ND+blQcWjl r6+oIEXXXiYr+ObGoByHaxM4UHel0ewFjFXcCzjHhD5SHBlmcqNuLnT4YPQ/E32AAO7k cCH2wsOhHLU4axr7daFSlL0joZ0h3UT9XIRIMQ7XUYuUtRGvQ4d2jMoS/Kf/ea17AOyi JFSg== MIME-Version: 1.0 X-Received: by 10.140.19.212 with SMTP id 78mr16418317qgh.84.1398979873907; Thu, 01 May 2014 14:31:13 -0700 (PDT) Sender: paulus.benedictus@gmail.com Received: by 10.96.193.100 with HTTP; Thu, 1 May 2014 14:31:13 -0700 (PDT) In-Reply-To: <136892395bc1a02297ff123956442319@scarlet.be> References: <20140501134806.17C0A238896F@eris.apache.org> <3a0939d1692f6a188f3abe71d7903510@scarlet.be> <5362B376.1070001@gmail.com> <136892395bc1a02297ff123956442319@scarlet.be> Date: Thu, 1 May 2014 16:31:13 -0500 X-Google-Sender-Auth: Piq1nWXGlJRTP_pliyBjUv7NdJY Message-ID: Subject: Re: [Math] Javadoc with Java 8 (Was: svn commit: r1591664 [2/2] - ...) From: Paul Benedict To: Commons Developers List Content-Type: multipart/alternative; boundary=001a1134effc6eaf1e04f85d621a X-Virus-Checked: Checked by ClamAV on apache.org --001a1134effc6eaf1e04f85d621a Content-Type: text/plain; charset=UTF-8 Gilles, Javadoc is not XHTML but HTML... and not just HTML, but an HTML fragment. Documentation writers need to remember that their content is being placed within a bigger document so correct tag usage is important to get predictable results. I think all Math committers will find this thread about the Javadoc changes for Java 8 to be informative (switching to thread view can help): http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/019269.html Paul On Thu, May 1, 2014 at 4:22 PM, Gilles wrote: > On Thu, 01 May 2014 22:49:58 +0200, Thomas Neidhart wrote: > >> On 05/01/2014 10:31 PM, Gilles wrote: >> >>> Hi. >>> >>> >>> I don't like most of the changes performed on the Javadoc; most of them >>> are going in the wrong direction IMHO, the most severe being the use of >>> HTML "entities" rather than using MathJax.[1] >>> >> >> well, this does not really come as a surprise. >> >> But seriously, about which changes are you talking? >> There are 5 groups of changes which have been performed so far: >> >> * replace
with

tags >> > > Trigerring an error on self-closing (and valid XML) tags seems > utterly stupid. [There might be some deeper reasons which I'm not > aware of at this point, since those "nice" Java 8 features are > totally new to me.] > > * escape angle brackets (<, >) with the corresponding HTML entities >> > > Does Java 8 refuse angle brackets enclosed in {@code ...} tags? > > * remove unneeded

tags where java 8 javadoc complained >> > > In XML, closing tags are never unneeded, they are required; so it > looks like Java 8 decided to be XML non-compliant. > If this is so, my opinion is to not use

anymore! > > * add tags within

 blocks as  was not allowed
>>    otherwise
>>  * fix wrong/missing closing of tags (mostly ol, ul, code, li)
>>
>> The only change being potentially controversial wrt readability are the
>> angle brackets, but there are already many cases where the entities are
>> used and this is only good practice and making it consistent in the
>> whole codebase.
>>
>
> I don't agree that reducing legibility is good practise.
>
>
>>  Last time I checked W3C was trying to make HTML a valid XML language;
>>> now from what I read in this commit, Java 8 insists on being invalid
>>> XML...
>>> Since when was it decided to comply with Java 8 despite that it does not
>>> seem to be an obvious move?
>>>
>>
>> Feel free to revert my change, I was only determined to avoid potential
>> problems with the 3.3 vote as some people build with Java 8 and report
>> errors with it.
>>
>> As the build with Java 8 is broken anyway (due to findbugs), it was a
>> wasted effort for now, thus I stopped in the middle of it.
>>
>>  Until there is agreement on a way out, I think that we should have
>>> followed the route proposed here:
>>>   http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
>>> (i.e. disable the enforcement of the new rules).
>>>
>>
>> Well, I tried that, but the setting did not seem to work with java 7,
>> thus I had to remove it again.
>>
>
> Then, as I indicated in the [vote] post, we should just not support
> Java 8 for the time being, and ask people to open appropriate issues
> for the things they wish to be fixed.
>
> Why should we jump because Oracle made Java 8 non compatible with
> Java 7?
>
>
> Gilles
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
Cheers,
Paul

--001a1134effc6eaf1e04f85d621a--