You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/02/22 01:41:29 UTC
[groovy] branch danielsun/tweak-resolving-further updated: Try to
address the bug - 1
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch danielsun/tweak-resolving-further
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/danielsun/tweak-resolving-further by this push:
new 07ef71e Try to address the bug - 1
07ef71e is described below
commit 07ef71ea9edfb947defd7227b92aa43aed83914e
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Feb 22 09:40:52 2020 +0800
Try to address the bug - 1
---
src/main/java/org/codehaus/groovy/vmplugin/v9/Java9.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v9/Java9.java b/src/main/java/org/codehaus/groovy/vmplugin/v9/Java9.java
index 60b354d..ad6a98a 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v9/Java9.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v9/Java9.java
@@ -87,6 +87,10 @@ public class Java9 extends Java8 {
System.err.println("[WARNING] Failed to get default imported groovy classes: " + e.getMessage());
}
+ if (result.isEmpty()) {
+ throw new GroovyBugError("No default imported classes found");
+ }
+
return result;
}