Opened 5 months ago

Closed 5 months ago

#2394 closed defect (fixed)

Build fails on Debian sid because of Javadoc errors

Reported by: Masayuki Hatta Owned by: zzz
Priority: minor Milestone: 0.9.38
Component: package/debian Version: 0.9.37
Keywords: Cc: Masayuki Hatta, zzz
Parent Tickets: Sensitive: no

Description

Build on the current Debian sid fails with the following errors:

  (snip)
  [javadoc] Constructing Javadoc information...                             
  [javadoc] javadoc: error - The code being documented uses modules but the pack
ages defined in http://docs.oracle.com/javase/7/docs/api/ are in the unnamed mod
ule.                                                                    
  [javadoc] javadoc: error - The code being documented uses modules but the pack
ages defined in http://docs.oracle.com/javaee/7/api/ are in the unnamed module.
 (snip)
   [javadoc] 2 errors                                               
                                                                       
BUILD FAILED                                                                    
/build/i2p-0.9.37/build.xml:820: Javadoc returned 1    

I'm not sure what's the culprit. At first, I thought the change of the default OpenJDK causes this, but changing Java versions manually by update-alternatives (8, 10, 11) didn't fix it.

However, somehow the following fixes it (suggested by https://bugs.openjdk.java.net/browse/JDK-8212233):

--- a/build.xml
+++ b/build.xml
@@ -810,6 +810,7 @@
         <mkdir dir="./build" />
         <mkdir dir="./build/javadoc" />                                       
         <javadoc access="package"
+            source="8"
             destdir="./build/javadoc"
             packagenames="*"
             use="true"

Subtickets

Change History (2)

comment:1 Changed 5 months ago by Masayuki Hatta

Seems that adding "source="1.7"" also works. Somehow setting "source" attribute in javadoc target of ant is mandatory?

comment:2 Changed 5 months ago by zzz

Resolution: fixed
Status: newclosed

Added source="${javac.version}" in 77e23d0c9091f6acab15d4b08527a12a7aa7c558 to be 0.9.38-0

Note: See TracTickets for help on using tickets.