You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by cr...@apache.org on 2023/11/29 09:40:18 UTC
(dubbo) branch 3.3 updated: fix native image build error when mainClass is null,add an empty string placeholder (#13426)
This is an automated email from the ASF dual-hosted git repository.
crazyhzm pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new 7e0954b8cf fix native image build error when mainClass is null,add an empty string placeholder (#13426)
7e0954b8cf is described below
commit 7e0954b8cf571773a37755131949653a50f47518
Author: foghost <fo...@gmail.com>
AuthorDate: Wed Nov 29 17:40:12 2023 +0800
fix native image build error when mainClass is null,add an empty string placeholder (#13426)
---
.../java/org/apache/dubbo/maven/plugin/aot/DubboProcessAotMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/aot/DubboProcessAotMojo.java b/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/aot/DubboProcessAotMojo.java
index c871e3f19a..e4451d9582 100644
--- a/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/aot/DubboProcessAotMojo.java
+++ b/dubbo-maven-plugin/src/main/java/org/apache/dubbo/maven/plugin/aot/DubboProcessAotMojo.java
@@ -85,7 +85,7 @@ public class DubboProcessAotMojo extends AbstractAotMojo {
private String[] getAotArguments(String applicationClass) {
List<String> aotArguments = new ArrayList<>();
- aotArguments.add(applicationClass);
+ aotArguments.add(applicationClass != null ? applicationClass : "");
aotArguments.add(this.generatedSources.toString());
aotArguments.add(this.generatedResources.toString());
aotArguments.add(this.generatedClasses.toString());