Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #10407 > unrolled thread

java9 javadoc errors (package htsjdk debianmed)

Started byolivier sallou <osallou@debian.org>
First post2018-04-16 18:10 +0200
Last post2018-04-16 18:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.maint.java


Contents

  java9 javadoc errors (package htsjdk debianmed) olivier sallou <osallou@debian.org> - 2018-04-16 18:10 +0200
    Re: java9 javadoc errors (package htsjdk debianmed) olivier sallou <olivier.sallou@gmail.com> - 2018-04-16 18:20 +0200

#10407 — java9 javadoc errors (package htsjdk debianmed)

Fromolivier sallou <osallou@debian.org>
Date2018-04-16 18:10 +0200
Subjectjava9 javadoc errors (package htsjdk debianmed)
Message-ID<vFeRz-JQ-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

I face several javadoc errors (ending with NullPointerException) with
openjdk 9 while updating package htsjdk.

I saw on internet several bugs related to javadoc.

Error ends with :

    javadoc: error - An exception occurred while building a component:
TagInfo
         (java.lang.NullPointerException)

If I delete impacted files from doc, I go further but many files are
impacted.

Anyone faced and could solve this?
It used to work on JDK8.

Example impacted "doc":

    /**
     * Calls close() on all elements of <code>objs</code> that implement
Closeable
     *
     * @param objs   A list of potentially closeable objects
     *
     * NOTE: This method must take a List<? extends Object>, not
List<Object>, otherwise the overload above will be selected
     * if the argument is not exactly List<Object>.
     */

Removing the last 2 lines part works.

Last option would be to remove javadoc package or patch all files... :-(

Olivier

[toc] | [next] | [standalone]


#10408

Fromolivier sallou <olivier.sallou@gmail.com>
Date2018-04-16 18:20 +0200
Message-ID<vFf1g-Nh-9@gated-at.bofh.it>
In reply to#10407

[Multipart message — attachments visible in raw view] — view raw

Le lun. 16 avr. 2018 à 18:05, olivier sallou <osallou@debian.org> a écrit :

> Hi,
>
> I face several javadoc errors (ending with NullPointerException) with
> openjdk 9 while updating package htsjdk.
>
> I saw on internet several bugs related to javadoc.
>
> Error ends with :
>
>     javadoc: error - An exception occurred while building a component:
> TagInfo
>          (java.lang.NullPointerException)
>
> If I delete impacted files from doc, I go further but many files are
> impacted.
>
> Anyone faced and could solve this?
> It used to work on JDK8.
>
> Example impacted "doc":
>
>     /**
>      * Calls close() on all elements of <code>objs</code> that implement
> Closeable
>      *
>      * @param objs   A list of potentially closeable objects
>      *
>      * NOTE: This method must take a List<? extends Object>, not
> List<Object>, otherwise the overload above will be selected
>      * if the argument is not exactly List<Object>.
>      */
>
> Removing the last 2 lines part works.
>

It also occured on other files after a warning (not error):

/opt/debian/build-area/htsjdk-2.14.3+dfsg/src/main/java/htsjdk/samtools/util/BlockGunzipper.java:104:
warning - Parameter "compressedBlock" is documented more than once.


Removing duplicate declaration works. But javadoc should not fail on a
warning... (with an exception).

I am using opensjdk-9-jdk 9.0.4+12-4




>
> Last option would be to remove javadoc package or patch all files... :-(
>
>
> Olivier
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.java


csiph-web