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


Groups > comp.lang.java.programmer > #39707

Re: Java 11: Inherit javadoc from base java classes

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Java 11: Inherit javadoc from base java classes
Date 2021-10-02 20:22 -0400
Organization Aioe.org NNTP Server
Message-ID <sjat3f$1gri$1@gioia.aioe.org> (permalink)
References <sjab9p$f4b$1@dont-email.me>

Show all headers | View raw


On 10/2/2021 3:18 PM, Stanimir Stamenkov wrote:
> I'm trying to generate javadoc for the given source while inheriting 
> apidoc from the base class/interface which happens to be from the 
> standard Java library.
> 
> I have the following "options" file (I'm on Windows for what is worth):
> 
> net.example
> -d
> doc
> -sourcepath
> src;C:\java\jdk-11\src
> -link
> https://docs.oracle.com/en/java/javase/11/docs/api
> 
> I have extracted the "src.zip" in the "C:\java\jdk-11" installation to a 
> "src" subdirectory just for that purpose.
> 
> I'm executing:
> 
>  > javadoc @options
> 
> but I'm not getting the generated javadoc inheriting apidoc from the jdk 
> sources.
> 
> The same example using Java 8 javadoc, and options:
> 
> net.example
> -d
> doc
> -sourcepath
> src;C:\java\jdk1.8.0\src
> -link
> https://docs.oracle.com/javase/8/docs/api
> 
> works as expected.  What configuration I need to use to make the same 
> working with Java 11's javadoc?

I suspect that you may need to add the module name to the source
path for Java 11:

-sourcepath
src;C:\java\jdk-11\src\java.desktop

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java 11: Inherit javadoc from base java classes Stanimir Stamenkov <s7an10@netscape.net> - 2021-10-02 22:18 +0300
  Re: Java 11: Inherit javadoc from base java classes Arne Vajhøj <arne@vajhoej.dk> - 2021-10-02 20:22 -0400
    Re: Java 11: Inherit javadoc from base java classes Stanimir Stamenkov <s7an10@netscape.net> - 2021-10-03 09:41 +0300
      Re: Java 11: Inherit javadoc from base java classes Stanimir Stamenkov <s7an10@netscape.net> - 2021-10-03 13:30 +0300
        Re: Java 11: Inherit javadoc from base java classes Stanimir Stamenkov <s7an10@netscape.net> - 2021-10-03 14:45 +0300
          Re: Java 11: Inherit javadoc from base java classes Stanimir Stamenkov <s7an10@netscape.net> - 2021-10-03 15:54 +0300

csiph-web