[
https://issues.apache.org/jira/browse/MJAVADOC-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921451#comment-16921451
]
Alexis Jehan commented on MJAVADOC-614:
---------------------------------------
The Java 8 behavior is back for Java 12, 13 and 14 so it seems quite stable
until at least next year. Furthermore the fix from our side is not so costly:
{code}
--- AbstractJavadocMojo.java
+++ AbstractJavadocMojo_new.java
@@ -4642,7 +4642,7 @@
/* default to platform encoding */
String outputFileEncoding = null;
- if ( JAVA_VERSION.isAtLeast( "9" ) )
+ if ( JAVA_VERSION.isAtLeast( "9" ) && JAVA_VERSION.isBefore( "12" ) )
{
outputFileEncoding = StandardCharsets.UTF_8.name();
}
{code}
{code}
--- JavadocReportTest.java
+++ JavadocReportTest_new.java
@@ -571,7 +571,7 @@
// check for a part of the window title
String content;
String expected;
- if ( JavaVersion.JAVA_VERSION.isAtLeast( "9" ) )
+ if ( JavaVersion.JAVA_VERSION.isAtLeast( "9" ) &&
JavaVersion.JAVA_VERSION.isBefore( "12" ) )
{
content = readFile( optionsFile, StandardCharsets.UTF_8 );
expected = OPTIONS_UMLAUT_ENCODING;
{code}
> "No source files for package" in a directory with accent characters
> -------------------------------------------------------------------
>
> Key: MJAVADOC-614
> URL: https://issues.apache.org/jira/browse/MJAVADOC-614
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: javadoc
> Affects Versions: 3.1.0, 3.1.1
> Environment: Operating System: Windows 7
> Java: OracleJDK12
> Maven: 3.6.1
> Reporter: Alexis Jehan
> Priority: Critical
> Attachments: options, options(3.0.1), packages, packages(3.0.1)
>
>
>
> Executing "mvn clean javadoc:javadoc" in the "D:\é\foo" produces the
> following error:
> {quote}[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default-cli) on
> project foo: An error has occurred in Javadoc report generation:
> [ERROR] Exit code: 2 - javadoc: error - No source files for package foo.bar
> [ERROR]
> [ERROR] Command line was: "C:\Program Files\Java\jdk-12\bin\javadoc.exe"
> @options @packages
> [ERROR]
> [ERROR] Refer to the generated Javadoc files in
> 'D:\é\foo\target\site\apidocs' dir.
> {quote}
> In a directory named "D:\e\foo", the same command does not produce any error.
> The bug does not affect Apache Maven Javadoc Plugin 3.0.1.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)