You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2024/08/23 08:35:29 UTC
(maven-compiler-plugin) branch maven-compiler-plugin-3.x updated: [MCOMPILER-592] - IndexOutOfBoundsException when project.build.outputTimestamp is empty (#244)
This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch maven-compiler-plugin-3.x
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
The following commit(s) were added to refs/heads/maven-compiler-plugin-3.x by this push:
new fdebd58 [MCOMPILER-592] - IndexOutOfBoundsException when project.build.outputTimestamp is empty (#244)
fdebd58 is described below
commit fdebd58ff69c4f09f69f5e96c4e79f372fdae68e
Author: thijsrijpert <de...@rijpert.com>
AuthorDate: Fri Aug 23 10:32:44 2024 +0200
[MCOMPILER-592] - IndexOutOfBoundsException when project.build.outputTimestamp is empty (#244)
---
.../java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index 2dc4ddb..2229dd8 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -1239,7 +1239,9 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
}
}
- if (outputTimestamp != null && (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
+ if (outputTimestamp != null
+ && !outputTimestamp.isEmpty()
+ && (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
// if Reproducible Builds mode, apply workaround
patchJdkModuleVersion(compilerResult, sources);
}