From a223f25db79555851f98fee1eba9e778ede69d39 Mon Sep 17 00:00:00 2001 From: Eugene Bova Date: Thu, 28 Feb 2019 18:22:49 +0200 Subject: [PATCH] MJAVADOC-580: javadoc:javadoc detects wrong java API link when running on openjdk 11.0.2 --- .../org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java index c1887a15b..3c0ac1687 100644 --- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java +++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java @@ -6249,7 +6249,8 @@ protected final OfflineLink getDefaultJavadocApiLink() } else if ( javaApiversion.isAtLeast( "11" ) ) { - javaApiLink = String.format( "https://docs.oracle.com/en/java/javase/%s/docs/api/", javaApiversion ); + javaApiLink = String.format( "https://docs.oracle.com/en/java/javase/%s/docs/api/", + javaApiversion.getValue( 1 ) ); } else if ( javaApiversion.asMajor().isAtLeast( "6" ) ) {