-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow loading custom Groovy extension modules
- Loading branch information
Showing
6 changed files
with
24 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
test-framework/common/src/main/java/io/quarkus/test/common/GroovyCacheCleaner.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
test-framework/common/src/main/java/io/quarkus/test/common/GroovyClassValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.quarkus.test.common; | ||
|
||
/** | ||
* {@link ClassValue} are used in Groovy which causes memory leaks if not properly cleaned, but unfortunately, they are | ||
* very complex to clean up, especially the {@link ClassValue} corresponding to system classes that must be cleaned too | ||
* to avoid memory leaks moreover if not cleaned wisely errors of type {@code MissingMethodException} can be thrown, so | ||
* we had better to simply disable them by setting the System property {@code groovy.use.classvalue} to {@code false} | ||
* see <a href="https://issues.apache.org/jira/browse/GROOVY-7591">GROOVY-7591</a> for more details. | ||
*/ | ||
public final class GroovyClassValue { | ||
|
||
private GroovyClassValue() { | ||
} | ||
|
||
public static void disable() { | ||
System.setProperty("groovy.use.classvalue", "false"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters