Public bug reported: I think this is the same bug as https://bugs.openjdk.java.net/browse/JDK-8199307 but as I don't have an openjdk account, maybe someone can post this fairly small reproducer there:
root@bionic:~# wget http://central.maven.org/maven2/org/apache/activemq/activemq-client/5.15.3/activemq-client-5.15.3.jar --2018-04-23 07:48:12-- http://central.maven.org/maven2/org/apache/activemq/activemq-client/5.15.3/activemq-client-5.15.3.jar Resolving central.maven.org (central.maven.org)... 151.101.24.209 Connecting to central.maven.org (central.maven.org)|151.101.24.209|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1428411 (1.4M) [application/java-archive] Saving to: ‘activemq-client-5.15.3.jar’ activemq-client-5.15.3.jar 100%[================================================================================================================>] 1.36M 541KB/s in 2.6s 2018-04-23 07:48:15 (541 KB/s) - ‘activemq-client-5.15.3.jar’ saved [1428411/1428411] root@bionic:~# cat > WrappedException.java /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.util; public class WrappedException extends RuntimeException { private static final long serialVersionUID = 3257290240212217905L; public WrappedException(Throwable original) { super(original); } } root@bionic:~# javadoc -classpath activemq-client-5.15.3.jar -linksource WrappedException.java Loading source file WrappedException.java... Constructing Javadoc information... javadoc: warning - You have not specified the version of HTML to use. The default is currently HTML 4.01, but this will change to HTML5 in a future release. To suppress this warning, please specify the version of HTML used in your documentation comments and to be generated by this doclet, using the -html4 or -html5 options. Standard Doclet version 10.0.1 Building tree for all the packages and classes... Generating ./org/apache/activemq/util/WrappedException.html... Generating ./org/apache/activemq/util/package-frame.html... Generating ./org/apache/activemq/util/package-summary.html... Generating ./org/apache/activemq/util/package-tree.html... Generating ./constant-values.html... Generating ./serialized-form.html... javadoc: error - An internal exception has occurred. (java.lang.NullPointerException) Please file a bug against the javadoc tool via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include error messages and the following diagnostic in your report. Thank you. java.lang.NullPointerException at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getLineNumber(Utils.java:2211) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SourceToHTMLConverter.getAnchorName(SourceToHTMLConverter.java:324) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addSrcLink(HtmlDocletWriter.java:1055) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.MethodWriterImpl.getSignature(MethodWriterImpl.java:152) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlSerialMethodWriter.addMemberHeader(HtmlSerialMethodWriter.java:124) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildMethodSubHeader(SerializedFormBuilder.java:320) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildSerializableMethods(SerializedFormBuilder.java:291) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildClassContent(SerializedFormBuilder.java:269) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildClassSerializedForm(SerializedFormBuilder.java:233) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildPackageSerializedForm(SerializedFormBuilder.java:197) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildSerializedFormSummaries(SerializedFormBuilder.java:171) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.buildSerializedForm(SerializedFormBuilder.java:153) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.SerializedFormBuilder.build(SerializedFormBuilder.java:140) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.generateOtherFiles(AbstractDoclet.java:234) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.generateOtherFiles(HtmlDoclet.java:115) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:217) at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.run(AbstractDoclet.java:117) at jdk.javadoc/jdk.javadoc.doclet.StandardDoclet.run(StandardDoclet.java:72) at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:581) at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:430) at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:343) at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63) at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52) 1 error 1 warning ** Affects: activemq (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1766187 Title: ftbfs with jdk10 due to NPE in javadoc To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/activemq/+bug/1766187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs