lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6224) move package.htmls to package-info.java for better tooling support
Date Mon, 09 Feb 2015 13:59:35 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312255#comment-14312255
] 

ASF subversion and git services commented on LUCENE-6224:
---------------------------------------------------------

Commit 1658399 from [~rcmuir] in branch 'dev/trunk'
[ https://svn.apache.org/r1658399 ]

LUCENE-6224: cut over more package.htmls

> move package.htmls to package-info.java for better tooling support
> ------------------------------------------------------------------
>
>                 Key: LUCENE-6224
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6224
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Robert Muir
>
> Today, on java8, if you typo a link in the package documentation of org.apache.lucene.search
(package.html) like this:
> {code}
> {@link org.apache.lucene.search.TermQueryX TermQuery}
> {code}
> then javadoc will silently do the wrong thing, it will generate a <code>xxx</code>
block with no link at all.
> On the other hand, if instead we do it as package-info.java, then it shows up in big
red letters as an error in my IDE, doclint catches it at compile time, etc, and we ensure
our links are doing what we want.
> {code}
>     [javac] /home/rmuir/workspace/trunk/lucene/core/src/java/org/apache/lucene/search/package-info.java:75:
error: reference not found
>     [javac]     {@link org.apache.lucene.search.TermQueryX TermQuery}
> {code}
> I think we should cutover? this also helps us rely less on our own linting scripts long
term because now doclint is checking these files too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message